47 |
47 |
48 public static void runTest(String whichTests, String classFileVersion) throws Exception { |
48 public static void runTest(String whichTests, String classFileVersion) throws Exception { |
49 System.out.println("\nC1 invocation tests, Tests: " + whichTests + |
49 System.out.println("\nC1 invocation tests, Tests: " + whichTests + |
50 ", class file version: " + classFileVersion); |
50 ", class file version: " + classFileVersion); |
51 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", |
51 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", |
52 "-Xcomp", "-XX:TieredStopAtLevel=1", whichTests, |
52 "-Xcomp", "-XX:TieredStopAtLevel=1", |
53 "--classfile_version=" + classFileVersion); |
53 "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", |
|
54 whichTests, "--classfile_version=" + classFileVersion); |
54 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
55 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
55 try { |
56 try { |
56 output.shouldContain("EXECUTION STATUS: PASSED"); |
57 output.shouldContain("EXECUTION STATUS: PASSED"); |
57 output.shouldHaveExitValue(0); |
58 output.shouldHaveExitValue(0); |
58 } catch (Throwable e) { |
59 } catch (Throwable e) { |