< prev index next >

test/hotspot/jtreg/runtime/InvocationTests/invocationGraalTests.java

Print this page
rev 59076 : [mq]: 8243945

@@ -35,20 +35,20 @@
  *          shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java
  * @compile invokespecial/Checker.java invokespecial/ClassGenerator.java invokespecial/Generator.java
  *          invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
  *          invokeinterface/Checker.java invokeinterface/ClassGenerator.java invokeinterface/Generator.java
  *
- * @run main/othervm/timeout=1800 invocationGraalTests
+ * @run driver/timeout=1800 invocationGraalTests
  */
 
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.compiler.InMemoryJavaCompiler;
 
 public class invocationGraalTests {
 
-    public static void runTest(String whichTests, String classFileVersion) throws Exception {
+    public static void runTest(String whichTests, String classFileVersion) throws Throwable {
         System.out.println("\nGraal invocation tests, Tests: " + whichTests +
                            ", class file version: " + classFileVersion);
         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
             "-XX:+UnlockExperimentalVMOptions", "-XX:+EnableJVMCI", "-XX:+UseJVMCICompiler",
             "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED",

@@ -65,11 +65,12 @@
                 " means that an AbstractMethodError exception was thrown but the test" +
                 " case expected method C.m to be invoked.");
             System.out.println(
                 "\nAlso note that passing --dump to invoke*.Generator will" +
                 " dump the generated classes (for debugging purposes).\n");
-            System.exit(1);
+
+            throw e;
         }
     }
 
     public static void main(String args[]) throws Throwable {
         // Get current major class file version and test with it.
< prev index next >