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

tests/coprocess.sh: fix rare fail (re: 712261c8)

A coprocess cleanup test could fail on rare occasions because I had
lowered the 'sleep 1' between two test coprocesses to 'sleep .1'.
This increases the sleep to prevent future spurious fails.

Fixes: https://github.com/ksh93/ksh/issues/129
This commit is contained in:
Martijn Dekker 2020-09-06 22:40:17 +02:00
parent e1c41bb2de
commit 6d0c4ac55f

View file

@ -141,7 +141,7 @@ do
fi fi
wait $! wait $!
( sleep .3 |& sleep .1 && kill $!; sleep .1; sleep .3 |& sleep .1 && kill $! ) || ( sleep 3 |& sleep .1 && kill $!; sleep .5; sleep 3 |& sleep .1 && kill $! ) ||
err_exit "$cat coprocess cleanup not working correctly" err_exit "$cat coprocess cleanup not working correctly"
{ : |& } 2>/dev/null || { : |& } 2>/dev/null ||
err_exit "subshell $cat coprocess lingers in parent" err_exit "subshell $cat coprocess lingers in parent"