Skip to content

Commit

Permalink
Clarify modification of argument list after creating ProcessBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerRiggs committed Mar 19, 2021
1 parent 6313399 commit 31c35be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/jdk/java/lang/ProcessBuilder/Basic.java
Expand Up @@ -2145,6 +2145,7 @@ public void doIt(Map<String,String> environ) {
// from the child VM.
// This test requires the thread reading from the subprocess be blocked
// in the read from the subprocess; there should be no bytes to read.
// Modify the argument list shared with ProcessBuilder to redirect VM output.
assert (childArgs.get(1).equals("-XX:+DisplayVMOutputToStderr")) : "Expected arg 1 to be \"-XX:+DisplayVMOutputToStderr\"";
switch (action & 0x1) {
case 0:
Expand Down

0 comments on commit 31c35be

Please sign in to comment.