8224529: [TESTBUG] JFR TestShenandoahHeapRegion* tests fail on build w/o Shenandoah
authormseledtsov
Wed, 22 May 2019 10:51:30 -0700
changeset 54992 4cc9109caffd
parent 54991 82fd8793ba5e
child 54993 65b0b63d7f14
8224529: [TESTBUG] JFR TestShenandoahHeapRegion* tests fail on build w/o Shenandoah Summary: Fixed at-requires statement, updated TEST.ROOT Reviewed-by: clanger, egahlin
test/jdk/TEST.ROOT
test/jdk/jdk/jfr/event/gc/detailed/TestShenandoahHeapRegionInformationEvent.java
test/jdk/jdk/jfr/event/gc/detailed/TestShenandoahHeapRegionStateChangeEvent.java
--- a/test/jdk/TEST.ROOT	Wed May 22 20:39:04 2019 +0300
+++ b/test/jdk/TEST.ROOT	Wed May 22 10:51:30 2019 -0700
@@ -43,6 +43,7 @@
     sun.arch.data.model \
     java.runtime.name \
     vm.gc.Z \
+    vm.gc.Shenandoah \
     vm.graal.enabled \
     vm.compiler1.enabled \
     vm.compiler2.enabled \
--- a/test/jdk/jdk/jfr/event/gc/detailed/TestShenandoahHeapRegionInformationEvent.java	Wed May 22 20:39:04 2019 +0300
+++ b/test/jdk/jdk/jfr/event/gc/detailed/TestShenandoahHeapRegionInformationEvent.java	Wed May 22 10:51:30 2019 -0700
@@ -38,8 +38,7 @@
 /**
  * @test
  * @bug 8221507
- * @requires vm.hasJFR
- * @requires vm.gc == "Shenandoah" | vm.gc == null
+ * @requires vm.hasJFR & vm.gc.Shenandoah
  * @key jfr
  * @library /test/lib /test/jdk
  * @run main/othervm  -Xmx32m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGarbageThreshold=1 jdk.jfr.event.gc.detailed.TestShenandoahHeapRegionInformationEvent
--- a/test/jdk/jdk/jfr/event/gc/detailed/TestShenandoahHeapRegionStateChangeEvent.java	Wed May 22 20:39:04 2019 +0300
+++ b/test/jdk/jdk/jfr/event/gc/detailed/TestShenandoahHeapRegionStateChangeEvent.java	Wed May 22 10:51:30 2019 -0700
@@ -37,8 +37,7 @@
 /**
  * @test
  * @bug 8221507
- * @requires vm.hasJFR
- * @requires vm.gc == "Shenandoah" | vm.gc == null
+ * @requires vm.hasJFR & vm.gc.Shenandoah
  * @key jfr
  * @library /test/lib /test/jdk
  * @run main/othervm  -Xmx32m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGarbageThreshold=1 jdk.jfr.event.gc.detailed.TestShenandoahHeapRegionStateChangeEvent