6868865: Test: sun/security/tools/jarsigner/oldsig.sh fails under all platforms
authorweijun
Wed, 17 Mar 2010 09:55:04 +0800
changeset 5153 8b10c5dccd73
parent 5152 a95085d9fe62
child 5154 07af3c279166
6868865: Test: sun/security/tools/jarsigner/oldsig.sh fails under all platforms Reviewed-by: wetmore
jdk/test/sun/security/tools/jarsigner/oldsig.sh
--- a/jdk/test/sun/security/tools/jarsigner/oldsig.sh	Tue Mar 16 14:31:57 2010 +0000
+++ b/jdk/test/sun/security/tools/jarsigner/oldsig.sh	Wed Mar 17 09:55:04 2010 +0800
@@ -1,5 +1,5 @@
 #
-# Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
+# Copyright 2007-2010 Sun Microsystems, Inc.  All Rights Reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 # 
 # This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,7 @@
 #
 
 # @test
-# @bug 6543940
+# @bug 6543940 6868865
 # @summary Exception thrown when signing a jarfile in java 1.5
 #
 # @run shell oldsig.sh
@@ -77,5 +77,6 @@
 ${TESTJAVA}${FS}bin${FS}jarsigner \
     -keystore ${TESTSRC}${FS}JarSigning.keystore \
     -storepass bbbbbb \
+    -digestalg SHA1 \
     B.jar c
 ${TESTJAVA}${FS}bin${FS}jarsigner -verify B.jar