changeset 26364:d0c49e0d085f

8057150: Add more diagnostics to JMXStartStopTest Reviewed-by: sla, dfuchs
author jbachorik
date Wed, 03 Sep 2014 16:05:41 +0200
parents fe7c0f0a78f3
children a828828378f6
files jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
                         }
                     },