8060007: Keytool test can use bundled NSS lib on Mac
authorweijun
Thu, 09 Oct 2014 16:05:24 +0800
changeset 26970 51018a2f505d
parent 26969 ca3ea2ba7c86
child 26971 f170b364177d
8060007: Keytool test can use bundled NSS lib on Mac Reviewed-by: vinnie
jdk/test/sun/security/tools/keytool/autotest.sh
--- a/jdk/test/sun/security/tools/keytool/autotest.sh	Tue Oct 07 15:14:05 2014 +0200
+++ b/jdk/test/sun/security/tools/keytool/autotest.sh	Thu Oct 09 16:05:24 2014 +0800
@@ -85,9 +85,7 @@
     fi
     ;;
   Darwin )
-    LIBNAME=`find_one \
-            "/Applications/Firefox.app/Contents/MacOS/libsoftokn3.dylib" \
-            "/Applications/Thunderbird.app//Contents/MacOS/libsoftokn3.dylib"`
+    LIBNAME="$TESTSRC/../../pkcs11/nss/lib/macosx-x86_64/libsoftokn3.dylib"
     ;;
   * )
     echo "Will not run test on: ${OS}"
@@ -102,10 +100,6 @@
 
 echo "Using NSS lib at $LIBNAME"
 
-if [ $OS = Darwin ]; then
-    export DYLD_LIBRARY_PATH=`dirname $LIBNAME`
-fi
-
 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . -XDignore.symbol.file \
         ${TESTSRC}${FS}KeyToolTest.java || exit 10