RFR: 8303133: Update ProcessTols.startProcess(...) to exit early if process exit before linePredicate is printed.
Daniel D. Daugherty
dcubed at openjdk.org
Fri Feb 24 22:39:05 UTC 2023
On Fri, 24 Feb 2023 22:15:18 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> The solution proposed by Stefan K
>
> The startProcess() might wait forever for the expected line if the process exits (failed to start). It makes sense to just fail earlier in such cases.
>
> The fix also move
> 'output = new OutputAnalyzer(this.process);'
> in method xrun() to be able to try to print them in waitFor is failed/interrupted.
I fixed a typo in the bug's synopsis line so you'll need to update the PR's title.
Use "/issue JDK-8303133" as the quickest way to set it.
-------------
PR: https://git.openjdk.org/jdk/pull/12751
More information about the core-libs-dev
mailing list