1
0
Fork 0

Made test output more readable.

master
Daniel Perelman 4 years ago
parent 8fef80ddad
commit b9b8599169

@ -9,6 +9,7 @@ echo " ∞=script does not halt (after 1 second timeout)"
echo " X=disown unsupported by shell"
echo " ☠=all children killed"
echo " 🏃=all children still running"
echo " ✔️=expected result (job killed, disowned child alive)"
echo
printf '\t'

@ -49,23 +49,23 @@ sleep 0.1s
if grep -q '^shell does not support disown$' "$TMP"
then
printf "X"
printf 'X'
fi
if ! grep -q '^disowned outlived parent.$' "$TMP"
then
# disowned should have outlived parent
EXITCODE=2
printf "☠"
printf '☠'
elif grep -q '^job outlived parent.$' "$TMP"
then
# job should not outlive parent
EXITCODE=3
printf "🏃"
printf '🏃'
else
# all good
EXITCODE=0
printf '%s' "$SHELL"
printf '✔️'
fi
rm -f "$TMP"

Loading…
Cancel
Save