From 903f06c7780880ca07036d0ff9ea6c2e28dfdb00 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 25 Jul 2019 15:28:03 -0700 Subject: 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. --- tests/killall.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/killall.test') 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 -- cgit v1.2.3