summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2016-06-09 13:09:17 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2016-06-09 13:09:17 +0100
commit061f80b95de9c6fe505edf2c3724daeddce6906f (patch)
treece7a513bbee449c4e77f327520ee1acf388c5aba
parent4b5c2901d630bf4a360aea872b04046f2de2cebc (diff)
Also catch OOME from the new byte[].
Change-Id: Ic756070ed4a3cb3760760fd5a2ebcad1ea0a8ca0
-rw-r--r--test/605-new-string-from-bytes/src/Main.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/605-new-string-from-bytes/src/Main.java b/test/605-new-string-from-bytes/src/Main.java
index bd24b50334..7dc0c15d99 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 @@ public class Main {
} else {
throw e;
}
+ } catch (OutOfMemoryError e) {
+ // Ignore, this is a stress test.
}
}
}