From 7ffcd7343fe3db035713d6348c05ec7174ae3695 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Fri, 28 Sep 2012 17:15:48 +0800 Subject: [PATCH] 7200682: TEST_BUG: keytool/autotest.sh still has problems with libsoftokn.so Reviewed-by: alanb, smarks --- jdk/test/sun/security/tools/keytool/autotest.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/jdk/test/sun/security/tools/keytool/autotest.sh b/jdk/test/sun/security/tools/keytool/autotest.sh index f414380a952..ea4c3f2715f 100644 --- a/jdk/test/sun/security/tools/keytool/autotest.sh +++ b/jdk/test/sun/security/tools/keytool/autotest.sh @@ -58,24 +58,18 @@ case "$OS" in LIBNAME="/usr/lib/mps/libsoftokn3.so" ;; Linux ) - ARCH=`uname -m` FS="/" - case "$ARCH" in - i[3-6]86 ) + ${TESTJAVA}${FS}bin${FS}java -XshowSettings:properties -version 2> allprop + cat allprop | grep os.arch | grep 64 + if [ "$?" != "0" ]; then LIBNAME=`find_one \ "/usr/lib/libsoftokn3.so" \ "/usr/lib/i386-linux-gnu/nss/libsoftokn3.so"` - ;; - x86_64 ) + else LIBNAME=`find_one \ "/usr/lib64/libsoftokn3.so" \ "/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so"` - ;; - * ) - echo "Will not run test on: Linux ${ARCH}" - exit 0; - ;; - esac + fi ;; * ) echo "Will not run test on: ${OS}"