RFR: 8265173: [test] divert spurious log output away from stream under test in ProcessBuilder Basic test
dholmes at openjdk.java.net
Thu Apr 15 05:20:32 UTC 2021
On Wed, 14 Apr 2021 14:08:50 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> The most recent intermittent failure showed that the error occurred during VM initialization.
> Only the tty output was diverted, but not log output.
> Add diversion of log output as well tty output.
> Add `-Xlog:all=warning:stderr` and `-Xlog:all=warning:stdout` to correspond to
> `-XX:+DisplayVMOutputToStderr` and `-XX:+DisplayVMOutputToStdout`
The fix looks good, but it strikes me that any test using -XX:+DisplayVMOutputToXXX can potentially suffer from a similar problem e.g. (in this space):
Marked as reviewed by dholmes (Reviewer).
More information about the core-libs-dev