# HG changeset patch # User juh # Date 1394217603 28800 # Node ID 0c0c7f131faa0f0a80117367490ffa249f9fbbd1 # Parent 7c5997f59e201c5be2d4d134b7dddff2dc2a1274 8036844: test failures due to wrong keystore paths Reviewed-by: weijun diff -r 7c5997f59e20 -r 0c0c7f131faa jdk/test/sun/security/provider/X509Factory/BigCRL.java --- a/jdk/test/sun/security/provider/X509Factory/BigCRL.java Fri Mar 07 15:01:32 2014 +0100 +++ b/jdk/test/sun/security/provider/X509Factory/BigCRL.java Fri Mar 07 10:40:03 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2014, Oracle and/or its affiliates. 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 @@ -45,7 +45,7 @@ public static void main(String[] args) throws Exception { int n = 500000; String ks = System.getProperty("test.src", ".") - + "/../../ssl/etc/keystore"; + + "/../../../../javax/net/ssl/etc/keystore"; String pass = "passphrase"; String alias = "dummy"; diff -r 7c5997f59e20 -r 0c0c7f131faa jdk/test/sun/security/tools/keytool/PrintSSL.java --- a/jdk/test/sun/security/tools/keytool/PrintSSL.java Fri Mar 07 15:01:32 2014 +0100 +++ b/jdk/test/sun/security/tools/keytool/PrintSSL.java Fri Mar 07 10:40:03 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2014, Oracle and/or its affiliates. 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 @@ -31,7 +31,8 @@ public static void main(String[] args) throws Exception { System.setProperty("javax.net.ssl.keyStorePassword", "passphrase"); System.setProperty("javax.net.ssl.keyStore", - System.getProperty("test.src", "./") + "/../../ssl/etc/keystore"); + System.getProperty("test.src", "./") + + "/../../../../javax/net/ssl/etc/keystore"); SSLServerSocketFactory sslssf = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); final ServerSocket server = sslssf.createServerSocket(0); diff -r 7c5997f59e20 -r 0c0c7f131faa jdk/test/sun/security/tools/keytool/printssl.sh --- a/jdk/test/sun/security/tools/keytool/printssl.sh Fri Mar 07 15:01:32 2014 +0100 +++ b/jdk/test/sun/security/tools/keytool/printssl.sh Fri Mar 07 10:40:03 2014 -0800 @@ -1,5 +1,5 @@ # -# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2008, 2014, Oracle and/or its affiliates. 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 @@ -56,7 +56,15 @@ esac ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . ${TESTSRC}${FS}PrintSSL.java || exit 10 -${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Dtest.src=$TESTSRC PrintSSL | ( read PORT; ${TESTJAVA}${FS}bin${FS}keytool -printcert -sslserver localhost:$PORT ) +${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Dtest.src=$TESTSRC PrintSSL | ( + read PORT + if [ "$PORT" = "" ]; then + echo "Server not started" + exit 2 + else + ${TESTJAVA}${FS}bin${FS}keytool -printcert -sslserver localhost:$PORT + fi +) status=$? rm PrintSSL*.class