7036666: test/com/sun/net/httpserver/Test9a.java fails intermittently
authortyan
Thu, 21 Nov 2013 13:37:11 +0000
changeset 21834 2ed7771ef949
parent 21833 60a910311eb7
child 21835 fd8f09f915da
7036666: test/com/sun/net/httpserver/Test9a.java fails intermittently Summary: Additional stacktrace information is printed on failure Reviewed-by: alanb, dfuchs, chegar
jdk/test/ProblemList.txt
jdk/test/com/sun/net/httpserver/Test9a.java
--- a/jdk/test/ProblemList.txt	Thu Nov 21 12:57:08 2013 +0000
+++ b/jdk/test/ProblemList.txt	Thu Nov 21 13:37:11 2013 +0000
@@ -160,9 +160,6 @@
 # Filed 7052625
 com/sun/net/httpserver/bugs/6725892/Test.java                   generic-all
 
-# Filed 7036666
-com/sun/net/httpserver/Test9a.java                              generic-all
-
 # failing on vista 32/64 on nightly
 # 7102702
 java/net/PortUnreachableException/OneExceptionOnly.java         windows-all
--- a/jdk/test/com/sun/net/httpserver/Test9a.java	Thu Nov 21 12:57:08 2013 +0000
+++ b/jdk/test/com/sun/net/httpserver/Test9a.java	Thu Nov 21 13:37:11 2013 +0000
@@ -40,8 +40,9 @@
 
 public class Test9a extends Test {
 
-    static SSLContext serverCtx, clientCtx;
-    static boolean error = false;
+    static SSLContext serverCtx;
+    static volatile SSLContext clientCtx = null;
+    static volatile boolean error = false;
 
     public static void main (String[] args) throws Exception {
         HttpsServer server = null;
@@ -176,6 +177,7 @@
                 compare (new File(orig), temp);
                 temp.delete();
             } catch (IOException e) {
+                e.printStackTrace();
                 error = true;
             }
         }