test/hotspot/jtreg/runtime/InvocationTests/invocationGraalTests.java
changeset 58312 ce960527ecee
parent 55552 9bd13d6dea77
child 58679 9c3209ff7550
equal deleted inserted replaced
58311:88fce7eea1f6 58312:ce960527ecee
    49     public static void runTest(String whichTests, String classFileVersion) throws Exception {
    49     public static void runTest(String whichTests, String classFileVersion) throws Exception {
    50         System.out.println("\nGraal invocation tests, Tests: " + whichTests +
    50         System.out.println("\nGraal invocation tests, Tests: " + whichTests +
    51                            ", class file version: " + classFileVersion);
    51                            ", class file version: " + classFileVersion);
    52         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
    52         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M",
    53             "-XX:+UnlockExperimentalVMOptions", "-XX:+EnableJVMCI", "-XX:+UseJVMCICompiler",
    53             "-XX:+UnlockExperimentalVMOptions", "-XX:+EnableJVMCI", "-XX:+UseJVMCICompiler",
       
    54             "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED",
    54             whichTests, "--classfile_version=" + classFileVersion);
    55             whichTests, "--classfile_version=" + classFileVersion);
    55         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    56         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    56         try {
    57         try {
    57             output.shouldContain("EXECUTION STATUS: PASSED");
    58             output.shouldContain("EXECUTION STATUS: PASSED");
    58             output.shouldHaveExitValue(0);
    59             output.shouldHaveExitValue(0);