Process output not in STDOUT

Jonathan Gibbons jonathan.gibbons at
Thu May 5 17:21:15 UTC 2016


jtreg catches System.out and System.err,  but not the low level OS 
stream stdout and sterr.

-- Jon

On 05/05/2016 08:56 AM, Wang Weijun wrote:
> I launch a process inside a jtreg test:
>    ProcessBuilder pb = new ProcessBuilder(cmd);
>    Process p = pb.inheritIO().start();
> I thought with inheritIO() the lines I System.out.println in the child process will appear in STDOUT of the jtr file. Instead, they appear in the log like this:
>    Agent[0].stdout: PATH: /bin:/usr/bin
> How do I get them back into STDOUT?
> Thanks
> Max

More information about the jtreg-use mailing list