test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
8130120 Cdiff test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java
test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java
Print this page
*** 62,84 ****
ExitCode.OK,
CommandLineOptionTest.prepareBooleanFlag(
SHAOptionsBase.USE_SHA_OPTION, true),
CommandLineOptionTest.prepareBooleanFlag(optionName, false));
! // Verify that it is possible to enable the tested option and disable
! // all SHA intrinsics via -UseSHA without any warnings.
! CommandLineOptionTest.verifySameJVMStartup(null, new String[] {
! SHAOptionsBase.getWarningForUnsupportedCPU(optionName)
! }, shouldPassMessage, String.format("It should be able to "
! + "enable option '%s' even if %s was passed to JVM",
! optionName, CommandLineOptionTest.prepareBooleanFlag(
! SHAOptionsBase.USE_SHA_OPTION, false)),
ExitCode.OK,
! CommandLineOptionTest.prepareBooleanFlag(
! SHAOptionsBase.USE_SHA_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(optionName, true));
}
@Override
protected void verifyOptionValues() throws Throwable {
// Verify that "It should be able to disable option "
--- 62,86 ----
ExitCode.OK,
CommandLineOptionTest.prepareBooleanFlag(
SHAOptionsBase.USE_SHA_OPTION, true),
CommandLineOptionTest.prepareBooleanFlag(optionName, false));
! if (!optionName.equals(SHAOptionsBase.USE_SHA_OPTION)) {
! // Verify that if -XX:-UseSHA is passed to the JVM, it is not possible
! // to enable the tested option and a warning is printed.
! CommandLineOptionTest.verifySameJVMStartup(
! new String[] { SHAOptionsBase.getWarningForUnsupportedCPU(optionName) },
! null,
! shouldPassMessage,
! String.format("Enabling option '%s' should not be possible and should result in a warning if %s was passed to JVM",
! optionName,
! CommandLineOptionTest.prepareBooleanFlag(SHAOptionsBase.USE_SHA_OPTION, false)),
ExitCode.OK,
! CommandLineOptionTest.prepareBooleanFlag(SHAOptionsBase.USE_SHA_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(optionName, true));
}
+ }
@Override
protected void verifyOptionValues() throws Throwable {
// Verify that "It should be able to disable option "
test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File