hotspot/test/compiler/rtm/cli/TestRTMTotalCountIncrRateOptionOnUnsupportedConfig.java
changeset 46515 dbb676a40899
parent 41705 332239c052cc
equal deleted inserted replaced
46514:38a2f229b094 46515:dbb676a40899
    27  * @summary Verify RTMTotalCountIncrRate option processing on CPU without
    27  * @summary Verify RTMTotalCountIncrRate option processing on CPU without
    28  *          rtm support and/or on VM without rtm locking support.
    28  *          rtm support and/or on VM without rtm locking support.
    29  * @library /test/lib /
    29  * @library /test/lib /
    30  * @modules java.base/jdk.internal.misc
    30  * @modules java.base/jdk.internal.misc
    31  *          java.management
    31  *          java.management
    32  *
    32  * @requires !(vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os)
    33  * @build sun.hotspot.WhiteBox
    33  * @build sun.hotspot.WhiteBox
    34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    35  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    35  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    36  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    36  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    37  *                   -XX:+WhiteBoxAPI
    37  *                   -XX:+WhiteBoxAPI
    38  *                   compiler.rtm.cli.TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
    38  *                   compiler.rtm.cli.TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
    39  */
    39  */
    40 
    40 
    41 package compiler.rtm.cli;
    41 package compiler.rtm.cli;
    42 
    42 
    43 import compiler.testlibrary.rtm.predicate.SupportedCPU;
       
    44 import compiler.testlibrary.rtm.predicate.SupportedOS;
       
    45 import compiler.testlibrary.rtm.predicate.SupportedVM;
       
    46 import jdk.test.lib.cli.predicate.AndPredicate;
       
    47 import jdk.test.lib.cli.predicate.NotPredicate;
       
    48 
       
    49 public class TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
    43 public class TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
    50         extends RTMGenericCommandLineOptionTest {
    44         extends RTMGenericCommandLineOptionTest {
    51     private static final String DEFAULT_VALUE = "64";
    45     private static final String DEFAULT_VALUE = "64";
    52 
    46 
    53     private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    47     private TestRTMTotalCountIncrRateOptionOnUnsupportedConfig() {
    54         super(new NotPredicate(
    48         super("RTMTotalCountIncrRate", false, true,
    55                 new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())),
       
    56                 "RTMTotalCountIncrRate", false, true,
       
    57                 TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
    49                 TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
    58                         .DEFAULT_VALUE,
    50                         .DEFAULT_VALUE,
    59                 "-1", "0", "42", "128");
    51                 "1", "42", "128");
    60     }
    52     }
    61 
    53 
    62     public static void main(String args[]) throws Throwable {
    54     public static void main(String args[]) throws Throwable {
    63         new TestRTMTotalCountIncrRateOptionOnUnsupportedConfig().test();
    55         new TestRTMTotalCountIncrRateOptionOnUnsupportedConfig().runTestCases();
    64     }
    56     }
    65 }
    57 }