fix false positive in signal5.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
82dd14a510
commit
786cce1871
@ -1,12 +1,12 @@
|
|||||||
Waiting
|
sleeping for 3 sec
|
||||||
sleeping for 1 sec
|
|
||||||
sleeping for 2 sec
|
sleeping for 2 sec
|
||||||
1 sec passed, sending USR1 to parent
|
|
||||||
USR1 received
|
|
||||||
Wait exit code: 138
|
|
||||||
Waiting
|
Waiting
|
||||||
2 sec passed, sending USR1 to parent
|
2 sec passed, sending USR1 to parent
|
||||||
USR1 received
|
USR1 received
|
||||||
Wait exit code: 138
|
Wait exit code: 138
|
||||||
Waiting
|
Waiting
|
||||||
|
3 sec passed, sending USR1 to parent
|
||||||
|
USR1 received
|
||||||
|
Wait exit code: 138
|
||||||
|
Waiting
|
||||||
Wait returned 0
|
Wait returned 0
|
||||||
|
@ -5,8 +5,9 @@ stub() {
|
|||||||
echo "$1 sec passed, sending USR1 to parent"
|
echo "$1 sec passed, sending USR1 to parent"
|
||||||
kill -USR1 $$
|
kill -USR1 $$
|
||||||
}
|
}
|
||||||
|
stub 3 &
|
||||||
stub 2 &
|
stub 2 &
|
||||||
stub 1 &
|
sleep 1
|
||||||
until { echo "Waiting"; wait; } do
|
until { echo "Waiting"; wait; } do
|
||||||
echo "Wait exit code: $?"
|
echo "Wait exit code: $?"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user