test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java	Wed Jul  1 16:47:28 2015
--- new/test/compiler/intrinsics/sha/cli/testcases/GenericTestCaseForSupportedCPU.java	Wed Jul  1 16:47:27 2015

*** 62,84 **** --- 62,86 ---- 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)), + 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), 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