< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug.test/src/org/graalvm/compiler/debug/test/DebugContextTest.java

Print this page

        

@@ -225,11 +225,11 @@
      * Tests that using a {@link DebugContext} on a thread other than the one on which it was
      * created causes an assertion failure.
      */
     @Test
     public void testInvariantChecking() throws InterruptedException {
-        Assume.assumeTrue(Assertions.ENABLED);
+        Assume.assumeTrue(Assertions.assertionsEnabled());
         EconomicMap<OptionKey<?>, Object> map = EconomicMap.create();
         // Configure with an option that enables counters
         map.put(DebugOptions.Counters, "");
         OptionValues options = new OptionValues(map);
         DebugContext debug = DebugContext.create(options, DebugHandlersFactory.LOADER);
< prev index next >