Process output not in STDOUT

Wang Weijun weijun.wang at oracle.com
Thu May 5 15:56:12 UTC 2016


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