mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8186248: Allow more flexibility in selecting Heap % of available RAM
Reviewed-by: dholmes, drwhite
This commit is contained in:
parent
c9523af5e9
commit
ed869998dd
6 changed files with 52 additions and 17 deletions
|
@ -36,17 +36,17 @@ import jdk.test.lib.process.OutputAnalyzer;
|
|||
public class NonBooleanFlagWithInvalidBooleanPrefix {
|
||||
public static void main(String[] args) throws Exception {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-XX:-MaxRAMFraction=16", "-version");
|
||||
"-XX:-MaxRAMPercentage=1", "-version");
|
||||
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain("Unexpected +/- setting in VM option 'MaxRAMFraction=16'");
|
||||
output.shouldContain("Unexpected +/- setting in VM option 'MaxRAMPercentage=1'");
|
||||
output.shouldHaveExitValue(1);
|
||||
|
||||
pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-XX:+MaxRAMFraction=16", "-version");
|
||||
"-XX:+MaxRAMPercentage=1", "-version");
|
||||
|
||||
output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain("Unexpected +/- setting in VM option 'MaxRAMFraction=16'");
|
||||
output.shouldContain("Unexpected +/- setting in VM option 'MaxRAMPercentage=1'");
|
||||
output.shouldHaveExitValue(1);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue