RFR: 8260431: com/sun/jdi/JdbOptions.java failed with "RuntimeException: 'prop[boo] = >foo<' missing from stdout/stderr"

Alex Menkov amenkov at openjdk.java.net
Tue Feb 2 21:06:43 UTC 2021


On Tue, 2 Feb 2021 20:12:27 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> The test expects debuggee output in jdb output stream.
>> But jdb redirects debuggee output asynchronously so sometimes it's incomplete or mixed with jdb output.
>> The fix updates debuggee to print output to file and read/analyze it after jdb (and debuggee) exits.
>
> test/jdk/com/sun/jdi/JdbOptions.java line 85:
> 
>> 83:     private static final String outFilename = UUID.randomUUID().toString() + ".out";
>> 84:     private static final Path outPath = Paths.get(outFilename);
>> 85:     private static final String targ = JbdOptionsTarg.class.getName() + " " + outFilename;
> 
> Is there a reason you added `outFilename` to `targ` rather than just add `outFilename` when you pass the argument string to `test()`.

Just to minimize the changes as outFilename is required argument for target app.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2322


More information about the serviceability-dev mailing list