ash: make one testsuite entry more robust
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 9 Oct 2009 21:08:28 +0000 (23:08 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 9 Oct 2009 21:08:28 +0000 (23:08 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-signals/signal1.tests

index 098d21f..3c42473 100755 (executable)
@@ -6,8 +6,13 @@ for try in 1 2 3 4 5; do
     echo "sent $try signal"
 done &
 
+# Ensure "wait" have something to wait for
 sleep 2 &
 
+# Ensure we do not execute "trap" below before "kill -USR1" above
+# (was getting failure on loaded machine without this)
+sleep 0.1
+
 sleeping=true
 while $sleeping; do
     trap