diff options
author | Elliott Hughes <enh@google.com> | 2019-07-25 15:28:03 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-07-25 21:41:03 -0500 |
commit | 903f06c7780880ca07036d0ff9ea6c2e28dfdb00 (patch) | |
tree | 3dda042c4875f2c9e791bcd1d9059283289c8026 /tests | |
parent | 90ba72902d5f65a398d6954b20bb10042de57270 (diff) | |
download | toybox-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.test | 4 |
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 |