aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Roger Riggs <rriggs@openjdk.org> 2021-04-15 14:38:14 +0000
committerGravatar Roger Riggs <rriggs@openjdk.org> 2021-04-15 14:38:14 +0000
commit7b61a426e0837bde4885bd53397bba6b0939382f (patch)
tree8031df5265af72e40bfdd9015211f0f2ab292f3c
parent4e90d740002e6f99bff7707763c0008f18187d36 (diff)
downloadjdk-7b61a426e0837bde4885bd53397bba6b0939382f.tar.gz
jdk-7b61a426e0837bde4885bd53397bba6b0939382f.zip
8265173: [test] divert spurious log output away from stream under test in ProcessBuilder Basic test
Reviewed-by: dholmes
-rw-r--r--test/jdk/java/lang/ProcessBuilder/Basic.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/jdk/java/lang/ProcessBuilder/Basic.java b/test/jdk/java/lang/ProcessBuilder/Basic.java
index 1083e84329a..750b735e07d 100644
--- a/test/jdk/java/lang/ProcessBuilder/Basic.java
+++ b/test/jdk/java/lang/ProcessBuilder/Basic.java
@@ -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
@@ -2150,10 +2150,12 @@ public class Basic {
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: