changeset 8874:2972241cf7eb

7036666: test/com/sun/net/httpserver/Test9a.java fails intermittently Summary: Additional stacktrace information is printed on failure Reviewed-by: alanb, dfuchs, chegar
author tyan
date Thu, 21 Nov 2013 13:37:11 +0000
parents fc9f24b9408e
children ed979f9b40cd
files test/ProblemList.txt test/com/sun/net/httpserver/Test9a.java
diffstat 2 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test/ProblemList.txt	Thu Nov 21 12:57:08 2013 +0000
+++ b/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/test/com/sun/net/httpserver/Test9a.java	Thu Nov 21 12:57:08 2013 +0000
+++ b/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;
             }
         }