changeset 2813:9eb9485ec45b

6986868: TEST failure: sun/security/tools/jarsigner/crl.sh Reviewed-by: ohair
author weijun
date Sat, 25 Sep 2010 10:21:30 +0800
parents 8503c7f3a354
children 4b0fdb9f7cfe
files test/sun/security/tools/jarsigner/crl.sh
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/tools/jarsigner/crl.sh	Fri Sep 24 14:22:01 2010 -0700
+++ b/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`