8057150: Add more diagnostics to JMXStartStopTest
authorjbachorik
Wed, 03 Sep 2014 16:05:41 +0200
changeset 26364 d0c49e0d085f
parent 26363 fe7c0f0a78f3
child 26365 a828828378f6
8057150: Add more diagnostics to JMXStartStopTest Reviewed-by: sla, dfuchs
jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Wed Sep 03 06:57:40 2014 +0000
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Wed Sep 03 16:05:41 2014 +0200
@@ -617,7 +617,10 @@
                 busyPort = ss.getLocalPort();
                 jcmd(
                     line -> {
-                        if (line.contains("Port already in use: " + busyPort)) {
+                        boolean match = line.contains("Port already in use: " +
+                                                      busyPort);
+                        System.out.println("[match] " + line + " => "  + match);
+                        if (match) {
                             checks.getAndUpdate((op) -> op | 4);
                         }
                     },