aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-11-21 15:05:42 -0800
committerRob Landley <rob@landley.net>2019-11-22 06:53:07 -0600
commit176c6fa4580571d262434ca2d610c860d30cf876 (patch)
tree844903af5745f01601c1f2cead56e6970cc6f90b
parentd64dfbabf3261cd64df14c86ba3670256cc25c3c (diff)
downloadtoybox-176c6fa4580571d262434ca2d610c860d30cf876.tar.gz
env.test: be sure to call toybox env.
This was failing on macOS because it was calling the system env(1).
-rwxr-xr-xtests/env.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/env.test b/tests/env.test
index 00b56540..6d8928d1 100755
--- a/tests/env.test
+++ b/tests/env.test
@@ -12,9 +12,9 @@ testcmd "read" "$FILTER" "BANANA=hello\nLETTERS=\nWALRUS=42\n" "" ""
testcmd "-u" "-u BANANA $FILTER" "LETTERS=\nWALRUS=42\n" "" ""
testcmd "-uu" "-u LETTERS -u WALRUS $FILTER" "BANANA=hello\n" "" ""
testcmd "-i" "-i env" "" "" ""
-testcmd "-i =" "-i one=two three=four env | sort" \
+testcmd "-i =" "-i one=two three=four $C | sort" \
"one=two\nthree=four\n" "" ""
-testcmd "-0" "-i five=six seven=eight env -0 | sort -z" "five=six\0seven=eight\0" "" ""
+testcmd "-0" "-i five=six seven=eight $C -0 | sort -z" "five=six\0seven=eight\0" "" ""
unset WALRUS BANANA LETTERS FILTER
testcmd "early fail" '--oops 2> /dev/null ; echo $?' "125\n" "" ""