changeset 6682:d3bd940d7f64

6986868: TEST failure: sun/security/tools/jarsigner/crl.sh Reviewed-by: ohair
author weijun
date Sat, 25 Sep 2010 10:21:30 +0800
parents e721d11e4826
children 5920fb9d1ebe
files jdk/test/sun/security/tools/jarsigner/crl.sh
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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`