Disable two more tests when Epsilon is not available. epsilon-gc-branch
authorshade
Fri, 19 Jan 2018 12:48:51 +0100
branchepsilon-gc-branch
changeset 56029 f14caf614061
parent 56028 267a6ce379ba
child 56095 97689d6b0494
Disable two more tests when Epsilon is not available.
test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java
test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java
--- a/test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java	Fri Jan 19 12:24:15 2018 +0100
+++ b/test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java	Fri Jan 19 12:48:51 2018 +0100
@@ -35,11 +35,13 @@
 import java.lang.management.*;
 import java.util.*;
 
-public class TestMemoryMXBeans {
+public class TestMemoryMXBeans extends AbstractEpsilonTest {
 
     static volatile Object sink;
 
     public static void main(String[] args) throws Exception {
+        if (!isEpsilonEnabled()) return;
+
         if (args.length < 2) {
             throw new IllegalStateException("Should provide expected heap sizes");
         }
--- a/test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java	Fri Jan 19 12:24:15 2018 +0100
+++ b/test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java	Fri Jan 19 12:48:51 2018 +0100
@@ -33,9 +33,11 @@
 import java.lang.management.*;
 import java.util.*;
 
-public class TestMemoryPools {
+public class TestMemoryPools extends AbstractEpsilonTest {
 
     public static void main(String[] args) throws Exception {
+        if (!isEpsilonEnabled()) return;
+
         List<MemoryManagerMXBean> mms = ManagementFactory.getMemoryManagerMXBeans();
         if (mms == null) {
             throw new RuntimeException("getMemoryManagerMXBeans is null");