src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CompilationWrapperTest.java
changeset 52578 7dd81e82d083
parent 51736 42d99cb7f50f
child 52910 583fd71c47d6
--- a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CompilationWrapperTest.java	Thu Nov 15 21:05:47 2018 +0100
+++ b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CompilationWrapperTest.java	Thu Nov 15 09:04:07 2018 -0800
@@ -54,6 +54,7 @@
      */
     @Test
     public void testVMCompilation1() throws IOException, InterruptedException {
+        assumeManagementLibraryIsLoadable();
         testHelper(Collections.emptyList(), Arrays.asList("-XX:-TieredCompilation",
                         "-XX:+UseJVMCICompiler",
                         "-Dgraal.CompilationFailureAction=ExitVM",
@@ -69,6 +70,7 @@
      */
     @Test
     public void testVMCompilation2() throws IOException, InterruptedException {
+        assumeManagementLibraryIsLoadable();
         testHelper(Collections.emptyList(), Arrays.asList("-XX:-TieredCompilation",
                         "-XX:+UseJVMCICompiler",
                         "-Dgraal.ExitVMOnException=true",
@@ -109,6 +111,7 @@
      */
     @Test
     public void testVMCompilation3() throws IOException, InterruptedException {
+        assumeManagementLibraryIsLoadable();
         final int maxProblems = 2;
         Probe retryingProbe = new Probe("Retrying compilation of", maxProblems) {
             @Override
@@ -146,6 +149,7 @@
      */
     @Test
     public void testTruffleCompilation1() throws IOException, InterruptedException {
+        assumeManagementLibraryIsLoadable();
         testHelper(Collections.emptyList(),
                         Arrays.asList(
                                         "-Dgraal.CompilationFailureAction=ExitVM",
@@ -175,6 +179,7 @@
      */
     @Test
     public void testTruffleCompilation3() throws IOException, InterruptedException {
+        assumeManagementLibraryIsLoadable();
         Probe[] probes = {
                         new Probe("Exiting VM due to TrufflePerformanceWarningsAreFatal=true", 1),
         };