8232195: Enable BigInteger tests: DivisionOverflow, SymmetricRangeTests and StringConstructorOverflow

Reviewed-by: bpb, darcy
This commit is contained in:
Amy Lu 2019-10-21 14:04:16 +08:00
parent 048b09bdbe
commit b404ddd9a2
4 changed files with 9 additions and 7 deletions

View File

@ -22,7 +22,8 @@ com/apple/laf com/sun/java/accessibility com/sun/java/swing sanity/client demo/j
javax/management sun/awt sun/java2d javax/xml/jaxp/testng/validation java/lang/ProcessHandle
# Tests that cannot run concurrently
exclusiveAccess.dirs=java/rmi/Naming java/util/prefs sun/management/jmxremote \
exclusiveAccess.dirs=java/math/BigInteger/largeMemory \
java/rmi/Naming java/util/prefs sun/management/jmxremote \
sun/tools/jstatd sun/tools/jcmd sun/tools/jhsdb sun/tools/jhsdb/heapconfig \
sun/tools/jinfo sun/tools/jmap sun/tools/jps sun/tools/jstack sun/tools/jstat \
com/sun/tools/attach sun/security/mscapi java/util/stream java/util/Arrays/largeMemory \

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,8 @@
* @test
* @bug 8022780
* @summary Test division of large values
* @run main/othervm -Xshare:off DivisionOverflow
* @requires os.maxMemory > 8g
* @run main/othervm -Xshare:off -Xmx8g DivisionOverflow
* @author Dmitry Nadezhin
*/
import java.math.BigInteger;

View File

@ -25,7 +25,7 @@
* @test
* @bug 8021204
* @summary Test constructor BigInteger(String val, int radix) on very long string
* @ignore This test has huge memory requirements
* @requires os.maxMemory > 8g
* @run main/othervm -Xshare:off -Xmx8g StringConstructorOverflow
* @author Dmitry Nadezhin
*/

View File

@ -23,11 +23,11 @@
/*
* @test
* @library /test/lib
* @ignore This test has huge memory requirements
* @run main/timeout=180/othervm -Xmx8g SymmetricRangeTests
* @bug 6910473 8021204 8021203 9005933 8074460 8078672
* @summary Test range of BigInteger values (use -Dseed=X to set PRNG seed)
* @library /test/lib
* @requires os.maxMemory > 8g
* @run main/timeout=180/othervm -Xmx8g SymmetricRangeTests
* @author Dmitry Nadezhin
* @key randomness
*/