test/compiler/arguments/BMIUnsupportedCPUTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8038924 Cdiff test/compiler/arguments/BMIUnsupportedCPUTest.java

test/compiler/arguments/BMIUnsupportedCPUTest.java

Print this page
rev 6404 : 8038924: Test bit-instructions fails with unexpected exit value on sparc
Reviewed-by: iignatyev
Contributed-by: filipp.zhinkin@oracle.com

*** 62,93 **** * * @throws Throwable if test failed. */ public void unsupportedX86CPUTestCases() throws Throwable { ! // verify that VM will succesfully start up, but output will // contain a warning ! CommandLineOptionTest. ! verifyJVMStartup("-XX:+" + optionName, ! new String[] { warningMessage }, ! new String[] { errorMessage }, ! ExitCode.OK); ! ! // verify that VM will succesfully startup without any warnings ! CommandLineOptionTest. ! verifyJVMStartup("-XX:-" + optionName, ! null, ! new String[] { warningMessage, errorMessage }, ! ExitCode.OK); // verify that on unsupported CPUs option is off by default ! CommandLineOptionTest.verifyOptionValue(optionName, "false"); // verify that on unsupported CPUs option will be off even if ! // it was explicitly turned on by uset ! CommandLineOptionTest.verifyOptionValue(optionName, "false", ! "-XX:+" + optionName); } /** * Run test cases common for all bit manipulation related VM options --- 62,90 ---- * * @throws Throwable if test failed. */ public void unsupportedX86CPUTestCases() throws Throwable { ! // verify that VM will successfully start up, but output will // contain a warning ! CommandLineOptionTest.verifySameJVMStartup( ! new String[] { warningMessage }, new String[] { errorMessage }, ! ExitCode.OK, CommandLineOptionTest.prepareBooleanFlag( ! optionName, true)); ! ! // verify that VM will successfully startup without any warnings ! CommandLineOptionTest.verifySameJVMStartup(null, ! new String[] { warningMessage, errorMessage }, ExitCode.OK, ! CommandLineOptionTest.prepareBooleanFlag(optionName, false)); // verify that on unsupported CPUs option is off by default ! CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false"); // verify that on unsupported CPUs option will be off even if ! // it was explicitly turned on by user ! CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", ! CommandLineOptionTest.prepareBooleanFlag(optionName, true)); } /** * Run test cases common for all bit manipulation related VM options
*** 96,114 **** * @throws Throwable if test failed. */ public void unsupportedNonX86CPUTestCases() throws Throwable { // verify that VM known nothing about tested option ! CommandLineOptionTest. ! verifyJVMStartup("-XX:+" + optionName, ! new String[] { errorMessage }, ! null, ! ExitCode.FAIL); ! ! CommandLineOptionTest. ! verifyJVMStartup("-XX:-" + optionName, ! new String[] { errorMessage }, ! null, ! ExitCode.FAIL); } } --- 93,107 ---- * @throws Throwable if test failed. */ public void unsupportedNonX86CPUTestCases() throws Throwable { // verify that VM known nothing about tested option ! CommandLineOptionTest.verifySameJVMStartup( ! new String[] { errorMessage }, null, ExitCode.FAIL, ! CommandLineOptionTest.prepareBooleanFlag(optionName, true)); ! ! CommandLineOptionTest.verifySameJVMStartup( ! new String[] { errorMessage }, null, ExitCode.FAIL, ! CommandLineOptionTest.prepareBooleanFlag(optionName, false)); } }
test/compiler/arguments/BMIUnsupportedCPUTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File