--- a/hotspot/test/gc/arguments/TestHeapFreeRatio.java Wed Jun 17 21:44:48 2015 +0000
+++ b/hotspot/test/gc/arguments/TestHeapFreeRatio.java Thu Jun 18 14:39:38 2015 -0500
@@ -40,6 +40,7 @@
VALID,
MIN_INVALID,
MAX_INVALID,
+ OUT_OF_RANGE,
COMBINATION_INVALID
}
@@ -65,8 +66,13 @@
output.shouldContain("Error");
output.shouldHaveExitValue(1);
break;
+ case OUT_OF_RANGE:
+ output.shouldContain("outside the allowed range");
+ output.shouldContain("Error");
+ output.shouldHaveExitValue(1);
+ break;
case COMBINATION_INVALID:
- output.shouldContain("must be less than or equal to MaxHeapFreeRatio");
+ output.shouldContain("must be greater than or equal to MinHeapFreeRatio");
output.shouldContain("Error");
output.shouldHaveExitValue(1);
break;
@@ -82,23 +88,24 @@
testMinMaxFreeRatio( ".1", ".5", Validation.VALID);
testMinMaxFreeRatio( "0.5", "0.5", Validation.VALID);
- testMinMaxFreeRatio("-0.1", "0.5", Validation.MIN_INVALID);
- testMinMaxFreeRatio( "1.1", "0.5", Validation.MIN_INVALID);
testMinMaxFreeRatio("=0.1", "0.5", Validation.MIN_INVALID);
testMinMaxFreeRatio("0.1f", "0.5", Validation.MIN_INVALID);
testMinMaxFreeRatio(
"INVALID", "0.5", Validation.MIN_INVALID);
- testMinMaxFreeRatio(
- "2147483647", "0.5", Validation.MIN_INVALID);
- testMinMaxFreeRatio( "0.1", "-0.5", Validation.MAX_INVALID);
- testMinMaxFreeRatio( "0.1", "1.5", Validation.MAX_INVALID);
testMinMaxFreeRatio( "0.1", "0.5f", Validation.MAX_INVALID);
testMinMaxFreeRatio( "0.1", "=0.5", Validation.MAX_INVALID);
testMinMaxFreeRatio(
"0.1", "INVALID", Validation.MAX_INVALID);
+
+ testMinMaxFreeRatio("-0.1", "0.5", Validation.OUT_OF_RANGE);
+ testMinMaxFreeRatio( "1.1", "0.5", Validation.OUT_OF_RANGE);
testMinMaxFreeRatio(
- "0.1", "2147483647", Validation.MAX_INVALID);
+ "2147483647", "0.5", Validation.OUT_OF_RANGE);
+ testMinMaxFreeRatio( "0.1", "-0.5", Validation.OUT_OF_RANGE);
+ testMinMaxFreeRatio( "0.1", "1.5", Validation.OUT_OF_RANGE);
+ testMinMaxFreeRatio(
+ "0.1", "2147483647", Validation.OUT_OF_RANGE);
testMinMaxFreeRatio( "0.5", "0.1", Validation.COMBINATION_INVALID);
testMinMaxFreeRatio( ".5", ".10", Validation.COMBINATION_INVALID);