fix false positive in signal5.tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 May 2010 08:14:20 +0000 (10:14 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 May 2010 08:14:20 +0000 (10:14 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-signals/signal5.right
shell/ash_test/ash-signals/signal5.tests

index 35fcbd63d25e605f31f8c3d6a311174852641eab..162f56bbcf9defc2c03089d96b141dfcbf8142ba 100644 (file)
@@ -1,11 +1,11 @@
-Waiting
-sleeping for 1 sec
+sleeping for 3 sec
 sleeping for 2 sec
-1 sec passed, sending USR1 to parent
+Waiting
+2 sec passed, sending USR1 to parent
 USR1 received
 Wait exit code: 138
 Waiting
-2 sec passed, sending USR1 to parent
+3 sec passed, sending USR1 to parent
 USR1 received
 Wait exit code: 138
 Waiting
index 5003180f71b1119811a2c354ce11c7f840980e07..371120e9525592bfb2ebdb7b660a30d5827e2a12 100755 (executable)
@@ -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