diff --git a/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java b/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java index eb9bbf35b0a09f5824f82691226973f3a5a92252..03cb587a526e11065ee31166feddd3754f8e5be2 100644 --- a/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java +++ b/test/jdk/jfr/event/metadata/TestLookForUntestedEvents.java @@ -24,7 +24,6 @@ */ package jdk.jfr.event.metadata; -import java.io.File; import java.io.IOException; import java.lang.reflect.Field; import java.nio.file.Files; @@ -40,8 +39,8 @@ import java.util.stream.Stream; import jdk.jfr.EventType; import jdk.jfr.Experimental; import jdk.jfr.FlightRecorder; -import jdk.test.lib.jfr.EventNames; import jdk.test.lib.Utils; +import jdk.test.lib.jfr.EventNames; /** * @test Check for JFR events not covered by tests @@ -54,14 +53,6 @@ public class TestLookForUntestedEvents { private static final String MSG_SEPARATOR = "=========================="; private static Set jfrEventTypes = new HashSet<>(); - private static final Set knownEventsMissingFromEventNames = new HashSet<>( - Arrays.asList( - // The Z* events below should be marked as experimental; see: JDK-8213966 - "ZStatisticsSampler", "ZStatisticsCounter", - "ZPageAllocation", "ZThreadPhase" - ) - ); - private static final Set hardToTestEvents = new HashSet<>( Arrays.asList( "DataLoss", "IntFlag", "ReservedStackActivation", @@ -146,9 +137,6 @@ public class TestLookForUntestedEvents { } } - // Account for the events that are known to be missing from the EventNames.java - eventsFromEventNamesClass.addAll(knownEventsMissingFromEventNames); - if (!jfrEventTypes.equals(eventsFromEventNamesClass)) { String exceptionMsg = "Events declared in jdk.test.lib.jfr.EventNames differ " + "from events returned by FlightRecorder.getEventTypes()";