aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-07-25 15:28:03 -0700
committerRob Landley <rob@landley.net>2019-07-25 21:41:03 -0500
commit903f06c7780880ca07036d0ff9ea6c2e28dfdb00 (patch)
tree3dda042c4875f2c9e791bcd1d9059283289c8026 /tests
parent90ba72902d5f65a398d6954b20bb10042de57270 (diff)
downloadtoybox-903f06c7780880ca07036d0ff9ea6c2e28dfdb00.tar.gz
killall: implement -w.
This isn't currently used in AOSP, but it is used in some of the other codebases I can easily search, and it's a better fix for test flakiness than inserting a sleep.
Diffstat (limited to 'tests')
-rw-r--r--tests/killall.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/killall.test b/tests/killall.test
index 8302a574..b15dbf0f 100644
--- a/tests/killall.test
+++ b/tests/killall.test
@@ -13,12 +13,12 @@ cp toybox.killall.test.script toybox.test
tst=toybox.test
./$tst &
-testing "short name" "killall $tst && echo killed ; sleep 0.1 ; \
+testing "short name" "killall -w $tst && echo killed ; \
pgrep -l $tst || echo really" "killed\nreally\n" "" ""
tst=toybox.killall.test.script
./$tst &
-testing "long name" "killall $tst && echo killed ; sleep 0.1 ; \
+testing "long name" "killall -w $tst && echo killed ; \
pgrep -l $tst || echo really" "killed\nreally\n" "" ""
rm -f toybox.killall.test.script toybox.test