test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java
changeset 58312 ce960527ecee
parent 55552 9bd13d6dea77
child 58679 9c3209ff7550
equal deleted inserted replaced
58311:88fce7eea1f6 58312:ce960527ecee
    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) {