mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
tests: printenv: fix a false failure on GNU/Hurd
* tests/misc/printenv.sh: Also filter out LD_ORIGIN_PATH.
This commit is contained in:
1 parent
80d6d6f4e3
commit
e4a3653bc3
1 file changed
+2
-1
@@ -102,7 +102,8 @@ done
|
||||
for qs in literal shell c; do
|
||||
env -i PATH="$PATH" QUOTING_STYLE=$qs 'a b'='c d' \
|
||||
printenv >out-t 2>err || fail=1
|
||||
grep -vE '^["'"'"']?(__CF_USER_TEXT_ENCODING|QUOTING_STYLE|PATH)["'"'"']?=' \
|
||||
grep -vE '^["'"'"']?'\
|
||||
'(__CF_USER_TEXT_ENCODING|QUOTING_STYLE|(LD_ORIGIN_)?PATH)["'"'"']?=' \
|
||||
out-t >out || framework_failure_
|
||||
compare exp-noargs-$qs out || fail=1
|
||||
compare /dev/null err || fail=1
|
||||
|
||||
Reference in new issue
Block a user