diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/killall.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/killall.test b/tests/killall.test new file mode 100644 index 00000000..100ac7ca --- /dev/null +++ b/tests/killall.test @@ -0,0 +1,14 @@ +#!/bin/bash + +[ -f testing.sh ] && . testing.sh + +#testing "name" "command" "result" "infile" "stdin" + +echo "#!/bin/sh +yes > /dev/null" > toybox.killall.test.script +chmod a+x toybox.killall.test.script + +./toybox.killall.test.script & +testing "script" "killall toybox.killall.test.script && echo killed ; pgrep -l toybox.killall.test.script || echo really" "killed\nreally\n" "" "" + +rm -f toybox.killall.test.script |