< 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]: graal

@@ -52,10 +52,11 @@
     /**
      * 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,10 +68,11 @@
      * 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,10 +109,11 @@
      * 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,10 +147,11 @@
     /**
      * 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,10 +177,11 @@
     /**
      * 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 >