9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test TestG1ConcMarkStepDurationMillis 26 * @key gc 27 * @requires vm.gc.G1 28 * @summary Tests argument processing for double type flag, G1ConcMarkStepDurationMillis 29 * @library /testlibrary 30 * @modules java.base/jdk.internal.misc 31 * java.management 32 */ 33 34 import jdk.test.lib.*; 35 import java.util.*; 36 import java.util.regex.*; 37 38 public class TestG1ConcMarkStepDurationMillis { 39 40 static final int PASS = 0; 41 static final int FAIL_IMPROPER_VALUE = 1; 42 static final int FAIL_OUT_RANGE = 2; 43 44 static final String DOUBLE_1 = "1.0"; 45 static final String DOUBLE_MAX = "1.79e+308"; 46 47 static final String DOUBLE_NEG_EXP = "1.0e-30"; 48 static final String NEG_DOUBLE_1 = "-1.0"; 49 50 static final String DOUBLE_INF = "1.79e+309"; 51 static final String NEG_DOUBLE_INF = "-1.79e+309"; 52 static final String DOUBLE_NAN = "abe+309"; 53 static final String WRONG_DOUBLE_1 = "1.79e+308e"; 54 static final String WRONG_DOUBLE_2 = "1.79ee+308"; | 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test TestG1ConcMarkStepDurationMillis 26 * @key gc 27 * @requires vm.gc.G1 28 * @summary Tests argument processing for double type flag, G1ConcMarkStepDurationMillis 29 * @library /test/lib 30 * @modules java.base/jdk.internal.misc 31 * java.management 32 */ 33 34 import jdk.test.lib.process.ProcessTools; 35 import jdk.test.lib.process.OutputAnalyzer; 36 import java.util.*; 37 import java.util.regex.*; 38 39 public class TestG1ConcMarkStepDurationMillis { 40 41 static final int PASS = 0; 42 static final int FAIL_IMPROPER_VALUE = 1; 43 static final int FAIL_OUT_RANGE = 2; 44 45 static final String DOUBLE_1 = "1.0"; 46 static final String DOUBLE_MAX = "1.79e+308"; 47 48 static final String DOUBLE_NEG_EXP = "1.0e-30"; 49 static final String NEG_DOUBLE_1 = "-1.0"; 50 51 static final String DOUBLE_INF = "1.79e+309"; 52 static final String NEG_DOUBLE_INF = "-1.79e+309"; 53 static final String DOUBLE_NAN = "abe+309"; 54 static final String WRONG_DOUBLE_1 = "1.79e+308e"; 55 static final String WRONG_DOUBLE_2 = "1.79ee+308"; |