1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

tests/variables.sh: minor fix in failure error msg

(cherry picked from commit bdcbcf42415aaf120a4e3a98fd4af1f8b810018f)
This commit is contained in:
Martijn Dekker 2020-05-21 22:27:54 +01:00
parent 593a5a8b7f
commit 62f8e744f1

View file

@ -733,9 +733,9 @@ _test_v() { eval "
"; } "; }
expect='USUSUsusus' expect='USUSUsusus'
actual=$(_test_v var) actual=$(_test_v var)
[[ "$actual" = "$expect" ]] || err_exit "[[ -v var ]] expansion fails in loops (expected '$expect', got '$actual')" [[ "$actual" = "$expect" ]] || err_exit "[[ -v var ]] command fails in loops (expected '$expect', got '$actual')"
actual=$(_test_v IFS) actual=$(_test_v IFS)
[[ "$actual" = "$expect" ]] || err_exit "[[ -v IFS ]] expansion fails in loops (expected '$expect', got '$actual')" [[ "$actual" = "$expect" ]] || err_exit "[[ -v IFS ]] command fails in loops (expected '$expect', got '$actual')"
# ====== # ======
# Verify that importing untrusted environment variables does not allow evaluating # Verify that importing untrusted environment variables does not allow evaluating