8229134: [TESTBUG] 32-bit build fails gc/arguments/TestSurvivorAlignmentInBytesOption.java after JDK-8228855
Reviewed-by: tschatzl
This commit is contained in:
parent
705b9c9496
commit
7b37608a65
@ -23,6 +23,7 @@
|
||||
|
||||
package gc.arguments;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.ExitCode;
|
||||
import jdk.test.lib.cli.CommandLineOptionTest;
|
||||
|
||||
@ -86,16 +87,18 @@ public class TestSurvivorAlignmentInBytesOption {
|
||||
// Verify that if specified SurvivorAlignmentInBytes is lower than
|
||||
// ObjectAlignmentInBytes, then the JVM startup will fail with
|
||||
// appropriate error message.
|
||||
shouldFailMessage = String.format("JVM startup should fail with "
|
||||
+ "'%s' option value lower than ObjectAlignmentInBytes", optionName);
|
||||
CommandLineOptionTest.verifyJVMStartup(
|
||||
new String[]{valueIsTooSmall}, null,
|
||||
shouldFailMessage, shouldFailMessage,
|
||||
ExitCode.FAIL, false,
|
||||
CommandLineOptionTest.prepareBooleanFlag(
|
||||
unlockExperimentalVMOpts, true),
|
||||
CommandLineOptionTest.prepareNumericFlag(optionName, 8),
|
||||
CommandLineOptionTest.prepareNumericFlag("ObjectAlignmentInBytes", 16));
|
||||
if (Platform.is64bit()) {
|
||||
shouldFailMessage = String.format("JVM startup should fail with "
|
||||
+ "'%s' option value lower than ObjectAlignmentInBytes", optionName);
|
||||
CommandLineOptionTest.verifyJVMStartup(
|
||||
new String[]{valueIsTooSmall}, null,
|
||||
shouldFailMessage, shouldFailMessage,
|
||||
ExitCode.FAIL, false,
|
||||
CommandLineOptionTest.prepareBooleanFlag(
|
||||
unlockExperimentalVMOpts, true),
|
||||
CommandLineOptionTest.prepareNumericFlag(optionName, 8),
|
||||
CommandLineOptionTest.prepareNumericFlag("ObjectAlignmentInBytes", 16));
|
||||
}
|
||||
|
||||
// Verify that if specified SurvivorAlignmentInBytes value is not
|
||||
// a power of 2 then the JVM startup will fail with appropriate error
|
||||
|
Loading…
Reference in New Issue
Block a user