8157344: Multiple test timeouts after push for JDK-8141039
8156606: java/security/SecureRandom/Serialize.java gets time out in Linux Reviewed-by: weijun
This commit is contained in:
parent
0260528ef9
commit
d54e7309f5
@ -292,6 +292,8 @@ sun/security/provider/NSASuiteB/TestDSAGenParameterSpec.java 8137255 generic-
|
|||||||
|
|
||||||
sun/security/x509/URICertStore/ExtensionsWithLDAP.java 8134577 generic-all
|
sun/security/x509/URICertStore/ExtensionsWithLDAP.java 8134577 generic-all
|
||||||
|
|
||||||
|
sun/security/provider/SecureRandom/StrongSecureRandom.java 8157387 linux-all
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
# jdk_sound
|
# jdk_sound
|
||||||
|
@ -28,11 +28,11 @@
|
|||||||
* @summary This test do API coverage for SecureRandom. It covers most of
|
* @summary This test do API coverage for SecureRandom. It covers most of
|
||||||
* supported operations along with possible positive and negative
|
* supported operations along with possible positive and negative
|
||||||
* parameters for DRBG mechanism.
|
* parameters for DRBG mechanism.
|
||||||
* @run main ApiTest Hash_DRBG
|
* @run main/othervm ApiTest Hash_DRBG
|
||||||
* @run main ApiTest HMAC_DRBG
|
* @run main/othervm ApiTest HMAC_DRBG
|
||||||
* @run main ApiTest CTR_DRBG
|
* @run main/othervm ApiTest CTR_DRBG
|
||||||
* @run main ApiTest SHA1PRNG
|
* @run main/othervm ApiTest SHA1PRNG
|
||||||
* @run main ApiTest NATIVE
|
* @run main/othervm ApiTest NATIVE
|
||||||
*/
|
*/
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
@ -53,6 +53,7 @@ public class ApiTest {
|
|||||||
= Security.getProperty(DRBG_CONFIG);
|
= Security.getProperty(DRBG_CONFIG);
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
System.setProperty("java.security.egd", "file:/dev/urandom");
|
||||||
|
|
||||||
if (args == null || args.length < 1) {
|
if (args == null || args.length < 1) {
|
||||||
throw new RuntimeException("No mechanism available to run test.");
|
throw new RuntimeException("No mechanism available to run test.");
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* @library /lib/testlibrary
|
* @library /lib/testlibrary
|
||||||
* @summary Check SecureRandom generate expected seed counts what the caller
|
* @summary Check SecureRandom generate expected seed counts what the caller
|
||||||
* asked for.
|
* asked for.
|
||||||
* @run main EnoughSeedTest
|
* @run main/othervm EnoughSeedTest
|
||||||
*/
|
*/
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
import java.security.Security;
|
import java.security.Security;
|
||||||
@ -40,6 +40,7 @@ public class EnoughSeedTest {
|
|||||||
= Security.getProperty(DRBG_CONFIG);
|
= Security.getProperty(DRBG_CONFIG);
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
System.setProperty("java.security.egd", "file:/dev/urandom");
|
||||||
|
|
||||||
boolean success = true;
|
boolean success = true;
|
||||||
for (String mech : new String[]{
|
for (String mech : new String[]{
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
/* @test
|
/* @test
|
||||||
* @bug 4102896
|
* @bug 4102896
|
||||||
* @summary Make sure that a SecureRandom object can be serialized
|
* @summary Make sure that a SecureRandom object can be serialized
|
||||||
|
* @run main/othervm Serialize
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.security.*;
|
import java.security.*;
|
||||||
@ -32,6 +33,8 @@ import java.io.*;
|
|||||||
public class Serialize {
|
public class Serialize {
|
||||||
|
|
||||||
public static void main(String args[]) throws Exception {
|
public static void main(String args[]) throws Exception {
|
||||||
|
System.setProperty("java.security.egd", "file:/dev/urandom");
|
||||||
|
|
||||||
for (String alg: new String[]{
|
for (String alg: new String[]{
|
||||||
"SHA1PRNG", "DRBG", "Hash_DRBG", "HMAC_DRBG", "CTR_DRBG",
|
"SHA1PRNG", "DRBG", "Hash_DRBG", "HMAC_DRBG", "CTR_DRBG",
|
||||||
"Hash_DRBG,SHA-512,192,pr_and_reseed"}) {
|
"Hash_DRBG,SHA-512,192,pr_and_reseed"}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user