summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-signals/signal1.tests
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-26 13:53:42 +0000
committerDenis Vlasenko2008-07-26 13:53:42 +0000
commit5c1327035995cebd1d36f9cb1943084b29ab7ae8 (patch)
treeaf2323cdc07a34961d34273a9e878e9ed65e1b66 /shell/ash_test/ash-signals/signal1.tests
parent87d5fd984e3e7b26fb15269f44a32ddf6f828fd8 (diff)
downloadbusybox-5c1327035995cebd1d36f9cb1943084b29ab7ae8.zip
busybox-5c1327035995cebd1d36f9cb1943084b29ab7ae8.tar.gz
ash: fix testcase to not sleep for whole 10 seconds,
gets annoying pretty fast. Also fix wrong message there.
Diffstat (limited to 'shell/ash_test/ash-signals/signal1.tests')
-rwxr-xr-xshell/ash_test/ash-signals/signal1.tests15
1 files changed, 7 insertions, 8 deletions
diff --git a/shell/ash_test/ash-signals/signal1.tests b/shell/ash_test/ash-signals/signal1.tests
index 49a395b..098d21f 100755
--- a/shell/ash_test/ash-signals/signal1.tests
+++ b/shell/ash_test/ash-signals/signal1.tests
@@ -1,24 +1,23 @@
-sleeping=true
-
trap "echo got signal" USR1
for try in 1 2 3 4 5; do
kill -USR1 $$
- sleep 1
- echo sent $try signal
+ sleep 0.2
+ echo "sent $try signal"
done &
-sleep 10 &
+sleep 2 &
+sleeping=true
while $sleeping; do
trap
if wait %%; then
- echo sleep completed
+ echo "sleep completed"
sleeping=false
elif [ $? == 127 ]; then
- echo no sleep tonite
+ echo "BUG: no processes to wait for?!"
sleeping=false
else
- echo sleep interrupted;
+ echo "wait interrupted"
fi
done