--- 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);