7187051: ShortRSAKeynnn.sh tests should do cleanup before start test
Reviewed-by: xuelei
--- a/jdk/test/sun/security/mscapi/ShortRSAKey1024.sh Wed Jul 25 12:47:28 2012 -0700
+++ b/jdk/test/sun/security/mscapi/ShortRSAKey1024.sh Thu Jul 26 20:38:44 2012 +0800
@@ -62,6 +62,13 @@
case "$OS" in
Windows* | CYGWIN* )
+ echo "Removing the keypair if it already exists (for unknown reason)..."
+ ${TESTJAVA}${FS}bin${FS}keytool \
+ -delete \
+ -storetype Windows-My \
+ -debug \
+ -alias 7106773.$BITS
+
echo "Creating a temporary RSA keypair in the Windows-My store..."
${TESTJAVA}${FS}bin${FS}keytool \
-genkeypair \