# HG changeset patch # User Bernhard Urban # Date 1370516949 -7200 # Node ID 6ceff6124679bc1b69297df7eca2eb226a51229b # Parent 1dd50a788ab7d6810c42ecb02d1084a2a26388f8 unittest/ctw: restore modified option after executing tests diff -r 1dd50a788ab7 -r 6ceff6124679 graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompileTheWorldTest.java --- 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); } }