mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8367365: java/math/BigInteger/BigIntegerTest.java failed in jtreg timeout
Reviewed-by: dfuchs, jpai
This commit is contained in:
parent
ec7432331b
commit
8b92af7d4a
@ -23,14 +23,13 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 4181191 4161971 4227146 4194389 4823171 4624738 4812225 4837946 4026465
|
||||
* 8074460 8078672 8032027 8229845 8077587 8367365
|
||||
* @summary tests methods in BigInteger (use -Dseed=X to set PRNG seed)
|
||||
* @key randomness
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.RandomFactory
|
||||
* @run main BigIntegerTest
|
||||
* @bug 4181191 4161971 4227146 4194389 4823171 4624738 4812225 4837946 4026465 8074460 8078672 8032027 8229845 8077587
|
||||
* @summary tests methods in BigInteger (use -Dseed=X to set PRNG seed)
|
||||
* @run main/timeout=400 BigIntegerTest
|
||||
* @author madbot
|
||||
* @key randomness
|
||||
* @run main/timeout=480 BigIntegerTest
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
@ -1397,8 +1396,8 @@ public class BigIntegerTest {
|
||||
public static void main(String[] args) throws Exception {
|
||||
// subset zero indicates to run all subsets
|
||||
int subset = Integer.valueOf(System.getProperty("subset",
|
||||
String.valueOf(1 + random.nextInt(3))));
|
||||
if (subset < 0 || subset > 3) {
|
||||
String.valueOf(1 + random.nextInt(4))));
|
||||
if (subset < 0 || subset > 4) {
|
||||
throw new RuntimeException("Unknown subset " + subset);
|
||||
}
|
||||
if (subset == 0)
|
||||
@ -1443,11 +1442,6 @@ public class BigIntegerTest {
|
||||
square(ORDER_KARATSUBA_SQUARE);
|
||||
square(ORDER_TOOM_COOK_SQUARE);
|
||||
|
||||
squareRoot();
|
||||
squareRootAndRemainder();
|
||||
nthRoot();
|
||||
nthRootAndRemainder();
|
||||
|
||||
bitCount();
|
||||
bitLength();
|
||||
bitOps(order1);
|
||||
@ -1474,6 +1468,13 @@ public class BigIntegerTest {
|
||||
squareLarge();
|
||||
divideLarge();
|
||||
}
|
||||
if (subset == 0 || subset == 4) {
|
||||
squareRoot();
|
||||
squareRootAndRemainder();
|
||||
|
||||
nthRoot();
|
||||
nthRootAndRemainder();
|
||||
}
|
||||
|
||||
if (failure)
|
||||
throw new RuntimeException("Failure in BigIntegerTest.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user