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:
Artem Smotrakov 2016-05-19 19:45:04 -07:00
parent 0260528ef9
commit d54e7309f5
4 changed files with 13 additions and 6 deletions

View File

@ -292,6 +292,8 @@ sun/security/provider/NSASuiteB/TestDSAGenParameterSpec.java 8137255 generic-
sun/security/x509/URICertStore/ExtensionsWithLDAP.java 8134577 generic-all
sun/security/provider/SecureRandom/StrongSecureRandom.java 8157387 linux-all
############################################################################
# jdk_sound

View File

@ -28,11 +28,11 @@
* @summary This test do API coverage for SecureRandom. It covers most of
* supported operations along with possible positive and negative
* parameters for DRBG mechanism.
* @run main ApiTest Hash_DRBG
* @run main ApiTest HMAC_DRBG
* @run main ApiTest CTR_DRBG
* @run main ApiTest SHA1PRNG
* @run main ApiTest NATIVE
* @run main/othervm ApiTest Hash_DRBG
* @run main/othervm ApiTest HMAC_DRBG
* @run main/othervm ApiTest CTR_DRBG
* @run main/othervm ApiTest SHA1PRNG
* @run main/othervm ApiTest NATIVE
*/
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
@ -53,6 +53,7 @@ public class ApiTest {
= Security.getProperty(DRBG_CONFIG);
public static void main(String[] args) throws Exception {
System.setProperty("java.security.egd", "file:/dev/urandom");
if (args == null || args.length < 1) {
throw new RuntimeException("No mechanism available to run test.");

View File

@ -27,7 +27,7 @@
* @library /lib/testlibrary
* @summary Check SecureRandom generate expected seed counts what the caller
* asked for.
* @run main EnoughSeedTest
* @run main/othervm EnoughSeedTest
*/
import java.security.SecureRandom;
import java.security.Security;
@ -40,6 +40,7 @@ public class EnoughSeedTest {
= Security.getProperty(DRBG_CONFIG);
public static void main(String[] args) {
System.setProperty("java.security.egd", "file:/dev/urandom");
boolean success = true;
for (String mech : new String[]{

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4102896
* @summary Make sure that a SecureRandom object can be serialized
* @run main/othervm Serialize
*/
import java.security.*;
@ -32,6 +33,8 @@ import java.io.*;
public class Serialize {
public static void main(String args[]) throws Exception {
System.setProperty("java.security.egd", "file:/dev/urandom");
for (String alg: new String[]{
"SHA1PRNG", "DRBG", "Hash_DRBG", "HMAC_DRBG", "CTR_DRBG",
"Hash_DRBG,SHA-512,192,pr_and_reseed"}) {