test/hotspot/jtreg/gc/epsilon/TestMemoryPools.java
branchepsilon-gc-branch
changeset 56029 f14caf614061
parent 55767 8e22715afabc
child 56350 56014b46de69
--- 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");