hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java
--- a/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java Tue Nov 24 02:54:54 2015 +0000
+++ b/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java Tue Nov 24 09:42:05 2015 +0300
@@ -55,6 +55,16 @@
protected boolean withRange;
/**
+ * Test valid min range value and additional small values
+ */
+ protected boolean testMinRange;
+
+ /**
+ * Test valid max range value and additional big values
+ */
+ protected boolean testMaxRange;
+
+ /**
* Prepend string which added before testing option to the command line
*/
private final List<String> prepend;
@@ -64,6 +74,8 @@
this.prepend = new ArrayList<>();
prependString = new StringBuilder();
withRange = false;
+ testMinRange = true;
+ testMaxRange = true;
}
/**
@@ -136,6 +148,20 @@
}
/**
+ * Exclude testing of min range value for this option
+ */
+ public final void excludeTestMinRange() {
+ testMinRange = false;
+ }
+
+ /**
+ * Exclude testing of max range value for this option
+ */
+ public final void excludeTestMaxRange() {
+ testMaxRange = false;
+ }
+
+ /**
* Set new minimum option value
*
* @param min new minimum value