diff -r 38a2f229b094 -r dbb676a40899 hotspot/test/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnSupportedConfig.java --- a/hotspot/test/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnSupportedConfig.java Thu Jun 01 17:33:07 2017 -0700 +++ b/hotspot/test/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnSupportedConfig.java Thu Jun 01 17:34:01 2017 -0700 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission @@ -40,22 +40,12 @@ package compiler.rtm.cli; -import compiler.testlibrary.rtm.predicate.SupportedCPU; -import compiler.testlibrary.rtm.predicate.SupportedOS; -import compiler.testlibrary.rtm.predicate.SupportedVM; import jdk.test.lib.process.ExitCode; import jdk.test.lib.cli.CommandLineOptionTest; -import jdk.test.lib.cli.predicate.AndPredicate; -public class TestUseRTMForStackLocksOptionOnSupportedConfig - extends CommandLineOptionTest { +public class TestUseRTMForStackLocksOptionOnSupportedConfig { private static final String DEFAULT_VALUE = "false"; - private TestUseRTMForStackLocksOptionOnSupportedConfig() { - super(new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())); - } - - @Override public void runTestCases() throws Throwable { String errorMessage = CommandLineOptionTest.getExperimentalOptionErrorMessage( @@ -127,6 +117,6 @@ } public static void main(String args[]) throws Throwable { - new TestUseRTMForStackLocksOptionOnSupportedConfig().test(); + new TestUseRTMForStackLocksOptionOnSupportedConfig().runTestCases(); } }