RFR: 8004126: TEST_BUG: com/sun/jdi/BadHandshakeTest.java fails intermittently
David Holmes
david.holmes at oracle.com
Thu Nov 7 16:55:25 PST 2013
On 8/11/2013 12:01 AM, Jaroslav Bachorik wrote:
> Please, review this test fix.
>
> Issue : https://bugs.openjdk.java.net/browse/JDK-8004126
> Webrev: http://cr.openjdk.java.net/~jbachorik/8004126/webrev.00
>
> The failure was caused by the IOHandler not waiting for the actual
> message stating the the debugee was ready.
So the base problem was that the initial in.read(b, 0, 100) might not
actually read the message that the debuggee was ready?
The cleanup seems good to me in general. Only concern I have is that
where the IOHandler would print what was read (which might not be what
was expected), in the new code if we don't see what we expect we just
set a boolean to false and the actual output from the debugee is never
shown - or is the debuggee output captured elsewhere?
Thanks,
David
The patch uses the library
> functions to start the debugee and wait for the actual message to
> appear. Also, it detects problems while starting the debugee and reports
> them instead of failing only when the debugger can not connect.
>
> Thanks,
>
> -JB-
More information about the serviceability-dev
mailing list