]> granicus.if.org Git - icu/commitdiff
ICU-10785 Abort test execution when OOM is once thrown.
authorYoshito Umaoka <y.umaoka@gmail.com>
Wed, 3 Sep 2014 14:49:30 +0000 (14:49 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Wed, 3 Sep 2014 14:49:30 +0000 (14:49 +0000)
X-SVN-Rev: 36327

icu4j/main/tests/framework/src/com/ibm/icu/dev/test/TestFmwk.java

index 8f6be2bba389c984d6b239652f25d3bebef1fb51..24c5e016c5ce2cc3d82c81a4a87a35c2ca413d7f 100644 (file)
@@ -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