test/compiler/intrinsics/sha/cli/testcases/UseSHAIntrinsicsSpecificTestCaseForUnsupportedSparcCPU.java

Print this page

        

*** 48,59 **** new NotPredicate(SHAOptionsBase.getPredicateForOption( optionName))))); } @Override protected void verifyWarnings() throws Throwable { ! // Verify that attempt to enable the tested option will cause a warning. CommandLineOptionTest.verifySameJVMStartup(new String[] { SHAOptionsBase.getWarningForUnsupportedCPU(optionName) ! }, null, ExitCode.OK, CommandLineOptionTest.prepareBooleanFlag(optionName, true)); } } --- 48,62 ---- new NotPredicate(SHAOptionsBase.getPredicateForOption( optionName))))); } @Override protected void verifyWarnings() throws Throwable { ! String shouldPassMessage = String.format("JVM should start with " ! + "'-XX:+%s' flag, but output should contain warning.", ! optionName); ! // Verify that attempt to enable the tested option will cause a warning CommandLineOptionTest.verifySameJVMStartup(new String[] { SHAOptionsBase.getWarningForUnsupportedCPU(optionName) ! }, null, shouldPassMessage, shouldPassMessage, ExitCode.OK, CommandLineOptionTest.prepareBooleanFlag(optionName, true)); } }