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
--- a/jdk/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java Tue Dec 03 15:52:16 2013 -0800
+++ b/jdk/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();