aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-10 08:20:40 -0700
committerRob Landley <rob@landley.net>2019-06-10 15:22:26 -0500
commitebc2c400763d0a2cbf092534150b3cd6744d51f9 (patch)
treec5d9afd0045a3d6244f92a8d7bff3c555dfc0d53 /tests
parent85af4c287c69394c7ec5423dcd661797cf501c9c (diff)
downloadtoybox-ebc2c400763d0a2cbf092534150b3cd6744d51f9.tar.gz
kill: add trivial -l tests.
(`kill -l HUP` and `kill -l 1` both said "HUP" instead of giving you back the one you didn't provide, before my real-time signal patch.)
Diffstat (limited to 'tests')
-rw-r--r--tests/kill.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/kill.test b/tests/kill.test
new file mode 100644
index 00000000..a91dd55a
--- /dev/null
+++ b/tests/kill.test
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+[ -f testing.sh ] && . testing.sh
+
+#testing "name" "command" "result" "infile" "stdin"
+
+testing "-l HUP" "kill -l HUP" "1\n" "" ""
+testing "-l 1" "kill -l 1" "HUP\n" "" ""