Process output not in STDOUT
jonathan.gibbons at oracle.com
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.
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.stdout: PATH: /bin:/usr/bin
> How do I get them back into STDOUT?
More information about the jtreg-use