forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Without this patch, the internal `env` command removes `env` and its args from the command line while parsing it. This patch modifies a copy instead so that the original command line is printed. Reviewed By: stella.stamenova, rnk Differential Revision: https://reviews.llvm.org/D65624 llvm-svn: 367752
- Loading branch information
1 parent
2c5a60f
commit a67d81e
Showing
2 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
# Check the env command | ||
# | ||
# RUN: %{lit} -a -v %{inputs}/shtest-env | ||
# RUN: %{lit} -j 1 -a -v %{inputs}/shtest-env \ | ||
# RUN: | FileCheck -match-full-lines %s | ||
# | ||
# END. | ||
|
||
# Make sure env commands are included in printed commands. | ||
|
||
# CHECK: PASS: shtest-env :: env-u.txt ({{[^)]*}}) | ||
# CHECK: $ "{{[^"]*}}" "print_environment.py" | ||
# CHECK: $ "env" "-u" "FOO" "{{[^"]*}}" "print_environment.py" | ||
# CHECK: $ "env" "-u" "FOO" "-u" "BAR" "{{[^"]*}}" "print_environment.py" | ||
|
||
# CHECK: PASS: shtest-env :: env.txt ({{[^)]*}}) | ||
# CHECK: $ "env" "A_FOO=999" "{{[^"]*}}" "print_environment.py" | ||
# CHECK: $ "env" "A_FOO=1" "B_BAR=2" "C_OOF=3" "{{[^"]*}}" "print_environment.py" | ||
|
||
# CHECK: PASS: shtest-env :: mixed.txt ({{[^)]*}}) | ||
# CHECK: $ "env" "A_FOO=999" "-u" "FOO" "{{[^"]*}}" "print_environment.py" | ||
# CHECK: $ "env" "A_FOO=1" "-u" "FOO" "B_BAR=2" "-u" "BAR" "C_OOF=3" "{{[^"]*}}" "print_environment.py" | ||
|
||
# CHECK: Expected Passes : 3 |