On Mon, 28 Jun 2021 21:36:08 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:
>> Updated AllModulesCommandTest to use dynamic port launching debuggee. >> Parsing debuggee listening address functionality is required in several >> tests (and we have other tests which need to be fixed the same way), so >> moved the code to new class in jdk.test.lib > > test/jdk/com/sun/jdi/JdwpAllowTest.java line 83: > >> 81: String s = app.getProcessStdout(); >> 82: JDWP.ListenAddress addr = JDWP.parseListenAddress(s); >> 83: if (addr != null) { > > What is going to happen in the case of addr == null? addr == null means we didn't get "listening for transport" output yet. We continue to run the loop waiting for the parse-able output ------------- PR: https://git.openjdk.java.net/jdk/pull/4560