Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8265173: [test] divert spurious log output away from stream under tes…
…t in ProcessBuilder Basic test

Backport-of: 7b61a42
  • Loading branch information
GoeLin committed Oct 6, 2021
1 parent f5e2a9d commit f248ceb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jdk/java/lang/ProcessBuilder/Basic.java
Expand Up @@ -27,7 +27,7 @@
* 5026830 5023243 5070673 4052517 4811767 6192449 6397034 6413313
* 6464154 6523983 6206031 4960438 6631352 6631966 6850957 6850958
* 4947220 7018606 7034570 4244896 5049299 8003488 8054494 8058464
* 8067796 8224905 8263729
* 8067796 8224905 8263729 8265173
* @key intermittent
* @summary Basic tests for Process and Environment Variable code
* @modules java.base/java.lang:open
Expand Down Expand Up @@ -2109,10 +2109,12 @@ public void doIt(Map<String,String> environ) {
switch (action & 0x1) {
case 0:
childArgs.set(1, "-XX:+DisplayVMOutputToStderr");
childArgs.add(2, "-Xlog:all=warning:stderr");
pb.redirectError(INHERIT);
break;
case 1:
childArgs.set(1, "-XX:+DisplayVMOutputToStdout");
childArgs.add(2, "-Xlog:all=warning:stdout");
pb.redirectOutput(INHERIT);
break;
default:
Expand Down

1 comment on commit f248ceb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.