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

tests/signal.h: double SIGCHLD test sleep time due to intermittent fail

This commit is contained in:
Martijn Dekker 2020-09-18 22:09:47 +02:00
parent f45a0f1650
commit 95fc175993

View file

@ -72,12 +72,15 @@ fi
wait
rm -f out2
[[ $( trap 'print -n got_child' SIGCHLD
sleep .2 &
actual=$( trap 'print -n got_child' SIGCHLD
sleep .4 &
for ((i=0; i < 4; i++))
do sleep .075
do sleep .15
print -n $i
done) == 01got_child23 ]] || err_exit 'SIGCHLD not working'
done)
expect=01got_child23
[[ $actual == "$expect" ]] || err_exit 'SIGCHLD not working' \
"(expected $(printf %q "$expect"), got $(printf %q "$actual"))"
# begin standalone SIGINT test generation