tests: printenv: fix a false failure on GNU/Hurd

* tests/misc/printenv.sh: Also filter out LD_ORIGIN_PATH.
This commit is contained in:
Collin Funk committed 2026-09-10 21:00:04 -07:00
1 parent 80d6d6f4e3
commit e4a3653bc3
1 file changed
+2 -1
+2 -1
View File
@@ -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