test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java
branchepsilon-gc-branch
changeset 56473 63a5ea2cdd0d
parent 56350 56014b46de69
child 56540 ada11a8e2ebc
--- a/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java	Mon Apr 23 12:32:25 2018 +0200
+++ b/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java	Mon Apr 23 12:53:43 2018 +0200
@@ -35,8 +35,8 @@
     if (Platform.isDebugBuild() && !isEpsilonEnabled()) {
       throw new IllegalStateException("Debug builds should have Epsilon enabled");
     }
-    if (!Platform.isDebugBuild() && isEpsilonEnabled()) {
-      throw new IllegalStateException("Non-debug builds should have Epsilon disabled");
+    if (!Platform.isDebugBuild() && !isEpsilonEnabled()) {
+      throw new IllegalStateException("Non-debug builds should have Epsilon enabled");
     }
   }
 }