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:
parent
f45a0f1650
commit
95fc175993
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue