From 786cce1871ade4240c629187d6609de155fe3536 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 17 May 2010 10:14:20 +0200 Subject: [PATCH] fix false positive in signal5.tests Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-signals/signal5.right | 10 +++++----- shell/ash_test/ash-signals/signal5.tests | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/shell/ash_test/ash-signals/signal5.right b/shell/ash_test/ash-signals/signal5.right index 35fcbd63d..162f56bbc 100644 --- a/shell/ash_test/ash-signals/signal5.right +++ b/shell/ash_test/ash-signals/signal5.right @@ -1,12 +1,12 @@ -Waiting -sleeping for 1 sec +sleeping for 3 sec sleeping for 2 sec -1 sec passed, sending USR1 to parent -USR1 received -Wait exit code: 138 Waiting 2 sec passed, sending USR1 to parent USR1 received Wait exit code: 138 Waiting +3 sec passed, sending USR1 to parent +USR1 received +Wait exit code: 138 +Waiting Wait returned 0 diff --git a/shell/ash_test/ash-signals/signal5.tests b/shell/ash_test/ash-signals/signal5.tests index 5003180f7..371120e95 100755 --- a/shell/ash_test/ash-signals/signal5.tests +++ b/shell/ash_test/ash-signals/signal5.tests @@ -5,8 +5,9 @@ stub() { echo "$1 sec passed, sending USR1 to parent" kill -USR1 $$ } +stub 3 & stub 2 & -stub 1 & +sleep 1 until { echo "Waiting"; wait; } do echo "Wait exit code: $?" done