From d5b44289714b3be62c9c91fc63d78fae98a60879 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 3 Sep 2014 14:49:30 +0000 Subject: [PATCH] ICU-10785 Abort test execution when OOM is once thrown. X-SVN-Rev: 36327 --- .../tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java b/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java index 8f6be2bba38..24c5e016c5c 100644 --- a/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java +++ b/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java @@ -84,6 +84,11 @@ public class TestFmwk extends AbstractTestLog { if(ex == null){ ex = e; } +// if (ex instanceof OutOfMemoryError) { +// // Once OOM happens, it does not make sense to run +// // the rest of test cases. +// throw new RuntimeException(ex); +// } if (ex instanceof ICUTestError) { // ICUTestError is one produced by errln. // We don't need to include useless stack trace information for -- 2.40.0