changeset 9911:6ceff6124679

unittest/ctw: restore modified option after executing tests
author Bernhard Urban <bernhard.urban@jku.at>
date Thu, 06 Jun 2013 13:09:09 +0200
parents 1dd50a788ab7
children fbad7372eccd
files graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompileTheWorldTest.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompileTheWorldTest.java	Thu Jun 06 11:36:07 2013 +0200
+++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompileTheWorldTest.java	Thu Jun 06 13:09:09 2013 +0200
@@ -26,6 +26,7 @@
 
 import com.oracle.graal.compiler.test.*;
 import com.oracle.graal.hotspot.*;
+import com.oracle.graal.phases.*;
 
 /**
  * Tests {@link CompileTheWorld} functionality.
@@ -34,9 +35,11 @@
 
     @Test
     public void testRtJar() throws Throwable {
+        boolean originalSetting = GraalOptions.ExitVMOnException.getValue();
         // Compile a couple classes in rt.jar
         String file = System.getProperty("java.home") + "/lib/rt.jar";
         new CompileTheWorld(file, 1, 5).compile();
+        GraalOptions.ExitVMOnException.setValue(originalSetting);
     }
 
 }