< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CompilationWrapperTest.java

Print this page

        

*** 80,100 **** --- 80,104 ---- "-Dgraal.CrashAt=root test1"), "org.graalvm.compiler.truffle.test.SLTruffleGraalTestSuite", "test"); } + private static final boolean VERBOSE = Boolean.getBoolean(CompilationWrapperTest.class.getSimpleName() + ".verbose"); + private static void testHelper(List<String> extraVmArgs, String... mainClassAndArgs) throws IOException, InterruptedException { final File dumpPath = new File(CompilationWrapperTest.class.getSimpleName() + "_" + System.currentTimeMillis()).getAbsoluteFile(); List<String> vmArgs = withoutDebuggerArguments(getVMCommandLine()); vmArgs.removeIf(a -> a.startsWith("-Dgraal.")); vmArgs.add("-Dgraal.DumpPath=" + dumpPath); // Force output to a file even if there's a running IGV instance available. vmArgs.add("-Dgraal.PrintGraphFile=true"); vmArgs.addAll(extraVmArgs); Subprocess proc = SubprocessUtil.java(vmArgs, mainClassAndArgs); + if (VERBOSE) { System.out.println(proc); + } String forcedCrashString = "Forced crash after compiling"; String diagnosticOutputFilePrefix = "Graal diagnostic output saved in "; boolean seenForcedCrashString = false;
< prev index next >