hotspot/test/compiler/arguments/BMICommandLineOptionTestBase.java
changeset 24674 dbf660a72081
parent 23501 ba4a33b2a569
child 30604 b8d532cb6420
equal deleted inserted replaced
24673:2ec56802b829 24674:dbf660a72081
    23 
    23 
    24 import com.oracle.java.testlibrary.cli.*;
    24 import com.oracle.java.testlibrary.cli.*;
    25 
    25 
    26 /**
    26 /**
    27  * Base class for all X86 bit manipulation related command line options.
    27  * Base class for all X86 bit manipulation related command line options.
       
    28  *
       
    29  * Note that this test intended to verify that VM could be launched with
       
    30  * specific options and that values of these options processed correctly.
       
    31  * In order to do that test launch a new VM with tested options, the same
       
    32  * flavor-specific flag as one that was used for parent VM (-client, -server,
       
    33  * -minimal, -graal) and '-version'.
    28  */
    34  */
    29 public abstract class BMICommandLineOptionTestBase
    35 public abstract class BMICommandLineOptionTestBase
    30               extends CPUSpecificCommandLineOptionTest {
    36               extends CPUSpecificCommandLineOptionTest {
    31 
    37 
    32     public static final String LZCNT_WARNING =
    38     public static final String LZCNT_WARNING =
    56     public BMICommandLineOptionTestBase(String optionName,
    62     public BMICommandLineOptionTestBase(String optionName,
    57                                         String warningMessage,
    63                                         String warningMessage,
    58                                         String supportedCPUFeatures[],
    64                                         String supportedCPUFeatures[],
    59                                         String unsupportedCPUFeatures[]) {
    65                                         String unsupportedCPUFeatures[]) {
    60         super(".*", supportedCPUFeatures, unsupportedCPUFeatures);
    66         super(".*", supportedCPUFeatures, unsupportedCPUFeatures);
    61             this.optionName = optionName;
    67         this.optionName = optionName;
    62             this.warningMessage = warningMessage;
    68         this.warningMessage = warningMessage;
    63             this.errorMessage = CommandLineOptionTest.
    69         this.errorMessage = String.format(
    64                 UNRECOGNIZED_OPTION_ERROR_FORMAT.format(optionName);
    70                 CommandLineOptionTest.UNRECOGNIZED_OPTION_ERROR_FORMAT,
       
    71                 optionName);
    65     }
    72     }
    66 
    73 
    67 }
    74 }
    68 
    75