Lines Matching full:wait
32 atf_set "descr" "Tests simple uses of wait"
38 '(echo nothing >/dev/null) & wait'
41 '(exit 3) & wait $!; S=$?; test $S -eq 3 || {
45 'sleep 3 & sleep 2 & sleep 1 & wait'
48 'sleep 3 & (exit 2) & sleep 1 & wait'
62 wait ${P1}
69 wait ${P2}
87 # atf-sh confuses wait for some reason; work it around by creating
90 if ! ${TEST_SH} -c 'sleep 1 & wait %1' 2>/dev/null
99 wait %1
105 wait %2
120 wait %1
127 wait %2
143 atf_set "descr" "Tests that killing the shell while in wait calls trap"
158 atf_check -s exit:127 -o empty -e ignore ${TEST_SH} -c 'wait 1'
165 wait
170 wait $sl; S=$?; echo $S
171 test $S = $LS && { echo "wait repeats..."; exit 2; }
181 wait