Withdrawn: 8233725: ProcessTools.startProcess() has output issues when using an OutputAnalyzer at the same time
Leonid Mesnik
lmesnik at openjdk.org
Fri Apr 21 04:45:04 UTC 2023
On Thu, 20 Apr 2023 16:09:29 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> ProcessTools.startProcess() creates process and read it's output error streams. So the any other using of corresponding Process.getInputStream() and Process.getErrorStream() doesn't get process streams.
>
> This fix preserve process streams content and allow to read it after process completion. The another possible solution would be to throw exception when user tries to read already drained streams to fail tests earlier. However it complicates usage of ProcessTools.startProcess() methods.
>
> The regression test has been provided with issue.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/13560
More information about the serviceability-dev
mailing list