changeset 8931:d922c8aba2f8

8029158: sun/security/pkcs11/Signature/TestDSAKeyLength.java does not compile (or run) Summary: Add the missing library path and skip testing against NSS 1.14 or later due to known NSS issue Reviewed-by: vinnie, ascarpino
author valeriep
date Tue, 03 Dec 2013 17:23:58 -0800
parents accd6ffd4b3f
children 75165f6c1c50
files test/sun/security/pkcs11/Signature/TestDSAKeyLength.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java	Tue Dec 03 15:52:16 2013 -0800
+++ b/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java	Tue Dec 03 17:23:58 2013 -0800
@@ -22,10 +22,10 @@
  */
 /*
  * @test
- * @bug 7200306
- * @run main/othervm/timeout=250 TestDSAKeyLength
+ * @bug 7200306 8029158
  * @summary verify that P11Signature impl will error out when initialized
  * with unsupported key sizes
+ * @library ..
  */
 
 
@@ -40,6 +40,11 @@
     }
 
     public void main(Provider provider) throws Exception {
+        if (isNSS(provider) && getNSSVersion() >= 3.14) {
+            System.out.println("Skip testing NSS " + getNSSVersion());
+            return;
+        }
+
         KeyPairGenerator kpg = KeyPairGenerator.getInstance("DSA", "SUN");
         kpg.initialize(2048, new SecureRandom());
         KeyPair pair = kpg.generateKeyPair();