On Fri, 13 Mar 2026 12:46:13 GMT, Frederic Thevenet <[email protected]> 
wrote:

> When an `OutputAnalyzer` instance uses a `LazyOutputBuffer` impl to capture a 
> process' standard output, it unconditionally writes progress logs to stdout. 
> This can easily flood the output in tests that spawn a great number of 
> processes, each with an OutputAnalyzer attached, as part of their operations.
> 
> This change introduce an optional "quiet mode" which allows suppressing the 
> diagnostic messages emitted by the analyzer.
> 
> (Notes on implementation)
> * Introducing a "verbose mode" instead would likely have been more idiomatic, 
> but would have implied a lot of existing tests opting into this new mode to 
> retain their current printing behavior.
> * It is implemented as an extra parameter in new constructor overloads for 
> `OutputAnalyzer`, which really is the only way since `LazyOutputBuffer` 
> starts logging in its constructor.

This pull request has now been integrated.

Changeset: 98520c02
Author:    Frederic Thevenet <[email protected]>
Committer: Thomas Stuefe <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/98520c029d27bd5e8b9e2113ac93f4adac164873
Stats:     45 lines in 2 files changed: 39 ins; 0 del; 6 mod

8378657: OutputAnalyzer should have a quiet mode

Reviewed-by: rriggs, stuefe

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

PR: https://git.openjdk.org/jdk/pull/30238

Reply via email to