jdk/test/sun/security/pkcs11/SecmodTest.java
changeset 10328 06c93c42bca0
parent 5506 202f599c92aa
child 14342 8435a30053c1
--- a/jdk/test/sun/security/pkcs11/SecmodTest.java	Fri Aug 12 11:20:45 2011 +0800
+++ b/jdk/test/sun/security/pkcs11/SecmodTest.java	Fri Aug 12 12:26:31 2011 +0800
@@ -44,8 +44,8 @@
         if (loadNSPR(LIBPATH) == false) {
             return false;
         }
-        System.load(LIBPATH + System.mapLibraryName("softokn3"));
-        System.load(LIBPATH + System.mapLibraryName("nssckbi"));
+        safeReload(LIBPATH + System.mapLibraryName("softokn3"));
+        safeReload(LIBPATH + System.mapLibraryName("nssckbi"));
 
         DBDIR = System.getProperty("test.classes", ".") + SEP + "tmpdb";
         System.setProperty("pkcs11test.nss.db", DBDIR);