RFR: 8356438: Update OutputAnalyzer to optionally print process output as it happens [v2]
Alice Pellegrini
duke at openjdk.org
Thu Jun 5 13:51:50 UTC 2025
On Thu, 5 Jun 2025 13:11:39 GMT, David Holmes <dholmes at openjdk.org> wrote:
> To where is the output going "as it happens"?
If the `outputanalyzer.verbose` flag is set, the output is going to be printed to the console, in addition to being stored in the buffer
> If you use OutputAnalyzer correctly then on failure all output to stdout and stderr is printed via reportDiagnosticSummary. Could you give a concrete example of a test with a problem and how this change fixes it?
As far as I understand, the creator of the issue would like debugging to be easier; they'd like, while debugging (so having paused) the execution of a test, to be able to see the output of whatever tool is wrapper by `OutputBuffer` in the console, **before** hitting the failure, looking at the output so far in the console, while being able to examine the state of the program being debugged.
As far as an example, I defer to the poster @mpdonova in case they have a more concrete example.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25587#issuecomment-2944467386
More information about the core-libs-dev
mailing list