test/jdk/java/net/httpclient/HttpServerAdapters.java
branchhttp-client-branch
changeset 56218 fd7bd32963ef
parent 56209 43d5ad612710
child 56262 d818a6a8295a
--- a/test/jdk/java/net/httpclient/HttpServerAdapters.java	Wed Feb 28 19:13:16 2018 +0000
+++ b/test/jdk/java/net/httpclient/HttpServerAdapters.java	Thu Mar 01 13:36:41 2018 +0000
@@ -302,7 +302,7 @@
             } catch (Throwable x) {
                 System.out.println("WARNING: exception caught in HttpTestHandler::handle " + x);
                 System.err.println("WARNING: exception caught in HttpTestHandler::handle " + x);
-                if (PRINTSTACK) x.printStackTrace(System.out);
+                if (PRINTSTACK && !expectException(t)) x.printStackTrace(System.out);
                 throw x;
             }
         }