summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/004-ThreadStress/src/Main.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/004-ThreadStress/src/Main.java b/test/004-ThreadStress/src/Main.java
index 1db7cc8385..7acd950e68 100644
--- a/test/004-ThreadStress/src/Main.java
+++ b/test/004-ThreadStress/src/Main.java
@@ -546,6 +546,9 @@ public class Main implements Runnable {
operation.perform();
i = (i + 1) % operations.length;
}
+ } catch (OutOfMemoryError e) {
+ // Catch OutOfMemoryErrors since these can cause the test to fail it they print
+ // the stack trace after "Finishing worker".
} finally {
if (DEBUG) {
System.out.println("Finishing ThreadStress Daemon for " + id);