RFR: 7903217: jtreg could try killing descendants of stuck test, before timing out the test [v2]

Gerard Ziemski gziemski at openjdk.org
Mon Aug 22 20:22:59 UTC 2022


On Mon, 22 Aug 2022 17:08:33 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

>> src/share/classes/com/sun/javatest/regtest/exec/ProcessCommand.java line 267:
>> 
>>> 265:                       long count = descendants.count();
>>> 266:                       if (count > 0) {
>>> 267:                         System.err.println("Detected a possibly stuck process (pid:"+pid+") with "+count+" descendants");
>> 
>> Don't use `System.err` directly;  use the `err` and `out` streams that were passed in when the class was invoked.
>
> Thank you, will fix.

That got much more complicated that I imaged. Please take a look and tell me if I missed something and it could have been done in a simpler way.

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

PR: https://git.openjdk.org/jtreg/pull/97


More information about the jtreg-dev mailing list