jdk/test/sun/security/pkcs11/ec/TestECDSA.java
changeset 13661 7c894680910a
parent 10328 06c93c42bca0
child 14342 8435a30053c1
--- a/jdk/test/sun/security/pkcs11/ec/TestECDSA.java	Thu Aug 30 12:55:40 2012 +0100
+++ b/jdk/test/sun/security/pkcs11/ec/TestECDSA.java	Thu Aug 30 14:40:57 2012 -0700
@@ -116,6 +116,10 @@
             System.out.println("ECDSA not supported, skipping");
             return;
         }
+
+        /*
+         * PKCS11Test.main will remove this provider if needed
+         */
         Providers.setAt(provider, 1);
 
         if (false) {
@@ -137,7 +141,6 @@
         test(provider, pub521, priv521, sig521);
         test(provider, pub571, priv571, sig571);
 
-        Security.removeProvider(provider.getName());
         long stop = System.currentTimeMillis();
         System.out.println("All tests passed (" + (stop - start) + " ms).");
     }