Skip to content
Permalink
Browse files
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 f248cebc7f60c54b3ddcea4b1f7202074d5c32a0
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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
@@ -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:

1 comment on commit f248ceb

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on f248ceb Oct 6, 2021

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.