Java Code Examples for com.oracle.java.testlibrary.cli.CommandLineOptionTest#verifyOptionValueForSameVM()
The following examples show how to use
com.oracle.java.testlibrary.cli.CommandLineOptionTest#verifyOptionValueForSameVM() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestUseRTMDeoptOptionOnSupportedConfig.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public void runTestCases() throws Throwable { // verify that option could be turned on CommandLineOptionTest.verifySameJVMStartup( null, null, ExitCode.OK, "-XX:+UseRTMDeopt"); // verify that option could be turned off CommandLineOptionTest.verifySameJVMStartup( null, null, ExitCode.OK, "-XX:-UseRTMDeopt"); // verify default value CommandLineOptionTest.verifyOptionValueForSameVM("UseRTMDeopt", TestUseRTMDeoptOptionOnSupportedConfig.DEFAULT_VALUE); // verify default value CommandLineOptionTest.verifyOptionValueForSameVM("UseRTMDeopt", TestUseRTMDeoptOptionOnSupportedConfig.DEFAULT_VALUE, CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, "-XX:+UseRTMLocking"); // verify that option is off when UseRTMLocking is off CommandLineOptionTest.verifyOptionValueForSameVM("UseRTMDeopt", "false", CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, "-XX:-UseRTMLocking", "-XX:+UseRTMDeopt"); // verify that option could be turned on CommandLineOptionTest.verifyOptionValueForSameVM("UseRTMDeopt", "true", CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, "-XX:+UseRTMLocking", "-XX:+UseRTMDeopt"); }
Example 2
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA option remains disabled even if all // UseSHA*Intrincs options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); // Verify that UseSHA option remains disabled even if all // UseSHA*Intrincs options were enabled and UseSHA was enabled as well. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 3
Source File: GenericTestCaseForSupportedSparcCPU.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that on supported CPU option is enabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true"); // Verify that it is possible to explicitly enable the option. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that it is possible to explicitly disable the option. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, false)); // verify that option is disabled when -UseSHA was passed to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, false)); // Verify that it is possible to explicitly disable the tested option // even if +UseSHA was passed to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag(optionName, false)); }
Example 4
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA option remains disabled even if all // UseSHA*Intrincs options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); // Verify that UseSHA option remains disabled even if all // UseSHA*Intrincs options were enabled and UseSHA was enabled as well. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 5
Source File: UseSHASpecificTestCaseForUnsupportedSparcCPU.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA option remains disabled even if all // UseSHA*Intrincs options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); // Verify that UseSHA option remains disabled even if all // UseSHA*Intrincs options were enabled and UseSHA was enabled as well. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 6
Source File: GenericTestCaseForSupportedSparcCPU.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that on supported CPU option is enabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true"); // Verify that it is possible to explicitly enable the option. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that it is possible to explicitly disable the option. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, false)); // verify that option is disabled when -UseSHA was passed to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, false)); // Verify that it is possible to explicitly disable the tested option // even if +UseSHA was passed to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag(optionName, false)); }
Example 7
Source File: GenericTestCaseForUnsupportedSparcCPU.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that option is disabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false"); // Verify that option is disabled even if it was explicitly enabled // using CLI options. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that option is disabled when +UseSHA was passed to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true)); }
Example 8
Source File: UseSHASpecificTestCaseForSupportedSparcCPU.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); CommandLineOptionTest.verifyOptionValueForSameVM( // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled even if it was explicitly enabled. SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); // Verify that explicitly disabled UseSHA option remains disabled even // if all UseSHA*Intrinsics options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 9
Source File: GenericTestCaseForUnsupportedSparcCPU.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that option is disabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false"); // Verify that option is disabled even if it was explicitly enabled // using CLI options. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that option is disabled when +UseSHA was passed to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true)); }
Example 10
Source File: GenericTestCaseForOtherCPU.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that option is disabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false"); // Verify that option is disabled even if it was explicitly enabled // using CLI options. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that option is disabled when it explicitly disabled // using CLI options. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, false)); }
Example 11
Source File: TestUseRTMDeoptOptionOnUnsupportedConfig.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override protected void runX86SupportedVMTestCases() throws Throwable { super.verifyJVMStartup(); // verify default value CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue); // verify that until RTMLocking is not used, value // will be set to default false. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue, "-XX:+UseRTMDeopt"); }
Example 12
Source File: TestUseRTMDeoptOptionOnUnsupportedConfig.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected void runX86SupportedVMTestCases() throws Throwable { super.verifyJVMStartup(); // verify default value CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue); // verify that until RTMLocking is not used, value // will be set to default false. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue, "-XX:+UseRTMDeopt"); }
Example 13
Source File: UseSHASpecificTestCaseForSupportedSparcCPU.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); CommandLineOptionTest.verifyOptionValueForSameVM( // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled even if it was explicitly enabled. SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); // Verify that explicitly disabled UseSHA option remains disabled even // if all UseSHA*Intrinsics options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 14
Source File: GenericTestCaseForUnsupportedX86CPU.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that the tested option is disabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false"); // Verify that it is not possible to explicitly enable the option. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that the tested option is disabled even if +UseSHA was passed // to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true)); }
Example 15
Source File: TestUseRTMDeoptOptionOnUnsupportedConfig.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override protected void runX86SupportedVMTestCases() throws Throwable { super.verifyJVMStartup(); // verify default value CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue); // verify that until RTMLocking is not used, value // will be set to default false. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue, "-XX:+UseRTMDeopt"); }
Example 16
Source File: UseSHASpecificTestCaseForSupportedSparcCPU.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); CommandLineOptionTest.verifyOptionValueForSameVM( // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled even if it was explicitly enabled. SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); // Verify that explicitly disabled UseSHA option remains disabled even // if all UseSHA*Intrinsics options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 17
Source File: TestUseRTMForStackLocksOptionOnUnsupportedConfig.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override protected void runX86SupportedVMTestCases() throws Throwable { // verify that option is experimental CommandLineOptionTest.verifySameJVMStartup( new String[]{ experimentalOptionError }, null, ExitCode.FAIL, prepareOptionValue("true")); CommandLineOptionTest.verifySameJVMStartup( new String[]{ experimentalOptionError }, null, ExitCode.FAIL, prepareOptionValue("false")); // verify that if we turn it on, then VM output will contain // warning saying that this option could be turned on only // when we use rtm locking CommandLineOptionTest.verifySameJVMStartup( new String[]{ RTMGenericCommandLineOptionTest.RTM_FOR_STACK_LOCKS_WARNING }, null, ExitCode.OK, CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, prepareOptionValue("true") ); // verify that options is turned off by default CommandLineOptionTest.verifyOptionValueForSameVM(optionName, TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE, CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS); // verify that it could not be turned on without rtm locking CommandLineOptionTest.verifyOptionValueForSameVM(optionName, TestUseRTMForStackLocksOptionOnUnsupportedConfig.DEFAULT_VALUE, CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, prepareOptionValue("true")); }
Example 18
Source File: UseSHASpecificTestCaseForSupportedSparcCPU.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); CommandLineOptionTest.verifyOptionValueForSameVM( // Verify that UseSHA is disabled when all UseSHA*Intrinscs are // disabled even if it was explicitly enabled. SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, false)); // Verify that explicitly disabled UseSHA option remains disabled even // if all UseSHA*Intrinsics options were enabled. CommandLineOptionTest.verifyOptionValueForSameVM( SHAOptionsBase.USE_SHA_OPTION, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, false), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, true), CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION, true)); }
Example 19
Source File: GenericTestCaseForUnsupportedX86CPU.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override protected void verifyOptionValues() throws Throwable { // Verify that the tested option is disabled by default. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false"); // Verify that it is not possible to explicitly enable the option. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag(optionName, true)); // Verify that the tested option is disabled even if +UseSHA was passed // to JVM. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", CommandLineOptionTest.prepareBooleanFlag( SHAOptionsBase.USE_SHA_OPTION, true)); }
Example 20
Source File: TestUseRTMDeoptOptionOnUnsupportedConfig.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override protected void runX86SupportedVMTestCases() throws Throwable { super.verifyJVMStartup(); // verify default value CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue); // verify that until RTMLocking is not used, value // will be set to default false. CommandLineOptionTest.verifyOptionValueForSameVM(optionName, defaultValue, "-XX:+UseRTMDeopt"); }