test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java
branchepsilon-gc-branch
changeset 56473 63a5ea2cdd0d
parent 56350 56014b46de69
child 56540 ada11a8e2ebc
equal deleted inserted replaced
56472:02bd022fcea1 56473:63a5ea2cdd0d
    33 public class TestEpsilonEnabled extends AbstractEpsilonTest {
    33 public class TestEpsilonEnabled extends AbstractEpsilonTest {
    34   public static void main(String[] args) throws Exception {
    34   public static void main(String[] args) throws Exception {
    35     if (Platform.isDebugBuild() && !isEpsilonEnabled()) {
    35     if (Platform.isDebugBuild() && !isEpsilonEnabled()) {
    36       throw new IllegalStateException("Debug builds should have Epsilon enabled");
    36       throw new IllegalStateException("Debug builds should have Epsilon enabled");
    37     }
    37     }
    38     if (!Platform.isDebugBuild() && isEpsilonEnabled()) {
    38     if (!Platform.isDebugBuild() && !isEpsilonEnabled()) {
    39       throw new IllegalStateException("Non-debug builds should have Epsilon disabled");
    39       throw new IllegalStateException("Non-debug builds should have Epsilon enabled");
    40     }
    40     }
    41   }
    41   }
    42 }
    42 }