Skip to content

Commit 3463e1c

Browse files
committed
add special cased mentioned in PR review
1 parent 5b8180d commit 3463e1c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/by-util/test_env.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,17 @@ fn test_env_arg_argv0_overwrite_mixed_with_string_args() {
780780
.succeeds()
781781
.stdout_is("aa/bb/cc\n")
782782
.stderr_is("");
783+
784+
// three args: normal, string, normal
785+
ts.ucmd()
786+
.args(&["-a", "sleep"])
787+
.args(&["-S-a dirname"])
788+
.args(&["-a", "echo"])
789+
.arg(&bin)
790+
.args(&["aa/bb/cc"])
791+
.succeeds()
792+
.stdout_is("aa/bb/cc\n")
793+
.stderr_is("");
783794
}
784795

785796
#[cfg(test)]

0 commit comments

Comments
 (0)