< prev index next >
test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java
Print this page
rev 59076 : [mq]: 8243945
@@ -34,20 +34,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 invocationC1Tests
+ * @run driver/timeout=1800 invocationC1Tests
*/
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.compiler.InMemoryJavaCompiler;
public class invocationC1Tests {
- public static void runTest(String whichTests, String classFileVersion) throws Exception {
+ public static void runTest(String whichTests, String classFileVersion) throws Throwable {
System.out.println("\nC1 invocation tests, Tests: " + whichTests +
", class file version: " + classFileVersion);
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
"-Xcomp", "-XX:TieredStopAtLevel=1",
"--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED",
@@ -64,11 +64,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 >