6986868: TEST failure: sun/security/tools/jarsigner/crl.sh
authorweijun
Sat, 25 Sep 2010 10:21:30 +0800
changeset 6682 d3bd940d7f64
parent 6681 e721d11e4826
child 6683 5920fb9d1ebe
6986868: TEST failure: sun/security/tools/jarsigner/crl.sh Reviewed-by: ohair
jdk/test/sun/security/tools/jarsigner/crl.sh
--- a/jdk/test/sun/security/tools/jarsigner/crl.sh	Fri Sep 24 14:22:01 2010 -0700
+++ b/jdk/test/sun/security/tools/jarsigner/crl.sh	Sat Sep 25 10:21:30 2010 +0800
@@ -63,7 +63,15 @@
 $KT -alias b -dname CN=b -keyalg rsa -genkey -validity 300
 $KT -alias b -gencrl -id 5:1 -id 6:2 -file crl3
 
-$TESTJAVA${FS}bin${FS}jrunscript -e 'println(new File("crl1").toURI())' > uri
+cat > ToURI.java <<EOF
+class ToURI {
+    public static void main(String[] args) throws Exception {
+        System.out.println(new java.io.File("crl1").toURI());
+    }
+}
+EOF
+$TESTJAVA${FS}bin${FS}javac ToURI.java
+$TESTJAVA${FS}bin${FS}java ToURI > uri
 $KT -alias c -dname CN=c -keyalg rsa -genkey -validity 300 \
     -ext crl=uri:`cat uri`