< 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
rev 52509 : [mq]: graal2

*** 52,61 **** --- 52,62 ---- /** * Tests compilation requested by the VM. */ @Test public void testVMCompilation1() throws IOException, InterruptedException { + assumeManagementLibraryIsLoadable(); testHelper(Collections.emptyList(), Arrays.asList("-XX:-TieredCompilation", "-XX:+UseJVMCICompiler", "-Dgraal.CompilationFailureAction=ExitVM", "-Dgraal.CrashAt=TestProgram.*", "-Xcomp",
*** 67,76 **** --- 68,78 ---- * Tests that {@code -Dgraal.ExitVMOnException=true} works as an alias for * {@code -Dgraal.CompilationFailureAction=ExitVM}. */ @Test public void testVMCompilation2() throws IOException, InterruptedException { + assumeManagementLibraryIsLoadable(); testHelper(Collections.emptyList(), Arrays.asList("-XX:-TieredCompilation", "-XX:+UseJVMCICompiler", "-Dgraal.ExitVMOnException=true", "-Dgraal.CrashAt=TestProgram.*", "-Xcomp",
*** 107,116 **** --- 109,119 ---- * Tests {@link GraalCompilerOptions#MaxCompilationProblemsPerAction} in context of a * compilation requested by the VM. */ @Test public void testVMCompilation3() throws IOException, InterruptedException { + assumeManagementLibraryIsLoadable(); final int maxProblems = 2; Probe retryingProbe = new Probe("Retrying compilation of", maxProblems) { @Override String test() { return actualOccurrences > 0 && actualOccurrences <= maxProblems ? null : String.format("expected occurrences to be in [1 .. %d]", maxProblems);
*** 144,153 **** --- 147,157 ---- /** * Tests compilation requested by Truffle. */ @Test public void testTruffleCompilation1() throws IOException, InterruptedException { + assumeManagementLibraryIsLoadable(); testHelper(Collections.emptyList(), Arrays.asList( "-Dgraal.CompilationFailureAction=ExitVM", "-Dgraal.TrufflePerformanceWarningsAreFatal=true", "-Dgraal.CrashAt=root test1"),
*** 173,182 **** --- 177,187 ---- /** * Tests that TrufflePerformanceWarningsAreFatal generates diagnostic output. */ @Test public void testTruffleCompilation3() throws IOException, InterruptedException { + assumeManagementLibraryIsLoadable(); Probe[] probes = { new Probe("Exiting VM due to TrufflePerformanceWarningsAreFatal=true", 1), }; testHelper(Arrays.asList(probes), Arrays.asList(
< prev index next >