commit | 061f80b95de9c6fe505edf2c3724daeddce6906f | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Thu Jun 09 13:09:17 2016 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Thu Jun 09 13:09:17 2016 +0100 |
tree | ce7a513bbee449c4e77f327520ee1acf388c5aba | |
parent | 4b5c2901d630bf4a360aea872b04046f2de2cebc [diff] |
Also catch OOME from the new byte[]. Change-Id: Ic756070ed4a3cb3760760fd5a2ebcad1ea0a8ca0
diff --git a/test/605-new-string-from-bytes/src/Main.java b/test/605-new-string-from-bytes/src/Main.java index bd24b50..7dc0c15 100644 --- a/test/605-new-string-from-bytes/src/Main.java +++ b/test/605-new-string-from-bytes/src/Main.java
@@ -37,6 +37,8 @@ } else { throw e; } + } catch (OutOfMemoryError e) { + // Ignore, this is a stress test. } } }