jdk/test/sun/security/tools/keytool/resource.sh
changeset 10420 924705f0b73f
parent 5506 202f599c92aa
child 12047 320a714614e9
--- a/jdk/test/sun/security/tools/keytool/resource.sh	Tue Aug 30 11:53:11 2011 -0700
+++ b/jdk/test/sun/security/tools/keytool/resource.sh	Wed Aug 31 09:22:50 2011 +0800
@@ -46,17 +46,14 @@
   SunOS | Linux )
     NULL=/dev/null
     FS="/"
-    TMP=/tmp
     ;;
   CYGWIN* )
     NULL=/dev/null
     FS="/"
-    TMP=/tmp
     ;;
   Windows_* )
     NULL=NUL
     FS="\\"
-    TMP="c:/temp"
     ;;
   * )
     echo "Unrecognized operating system!"
@@ -65,13 +62,11 @@
 esac
 
 # the test code
-${TESTJAVA}${FS}bin${FS}keytool > ${TMP}${FS}temp_file_40875602475 2> ${NULL}
-grep MissingResourceException ${TMP}${FS}temp_file_40875602475
+${TESTJAVA}${FS}bin${FS}keytool > temp_file_40875602475 2> ${NULL}
+grep MissingResourceException temp_file_40875602475
 
 if [ $? -eq 0 ]; then 
-    rm ${TMP}${FS}temp_file_40875602475
     exit 1
 fi
 
-rm ${TMP}${FS}temp_file_40875602475
 exit 0