1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

tests/io.sh: add test for proc subst with umask 777 (re: ab5dedde)

This commit is contained in:
Martijn Dekker 2021-03-13 16:42:31 +00:00
parent 16c6f854c1
commit 73ef41f380

View file

@ -780,5 +780,9 @@ got=$(procsub_delay <(echo hi) <(echo there) <(echo world))
[[ $got == "$exp" ]] || err_exit "process substitutions passed to function failed" \ [[ $got == "$exp" ]] || err_exit "process substitutions passed to function failed" \
"(expected $(printf %q "$exp"), got $(printf %q "$got"))" "(expected $(printf %q "$exp"), got $(printf %q "$got"))"
# process substitutions should work regardless of umask
got=$(umask 777; set +x; { cat <(echo ok); } 2>&1)
[[ $got == ok ]] || err_exit "process substitution failed with umask 777 (got $(printf %q "$got"))"
# ====== # ======
exit $((Errors<125?Errors:125)) exit $((Errors<125?Errors:125))