aboutsummaryrefslogtreecommitdiff
path: root/tests/timeout.test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-03-13 22:21:13 -0700
committerRob Landley <rob@landley.net>2019-03-14 10:31:07 -0500
commitcaa5a3b131137d1063ea466e57204b9375701499 (patch)
treebcedf6547bef6368cde5bca82ac047a3dcaa1939 /tests/timeout.test
parent4157ed0625ff7b166adac36d97988716651fde9e (diff)
downloadtoybox-caa5a3b131137d1063ea466e57204b9375701499.tar.gz
grep: use TOYFLAG_ARGFAIL for grep too.
Also add a test, and add a test for timeout now it's been fixed.
Diffstat (limited to 'tests/timeout.test')
-rw-r--r--tests/timeout.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/timeout.test b/tests/timeout.test
index 5ca7cc90..189b592a 100644
--- a/tests/timeout.test
+++ b/tests/timeout.test
@@ -7,6 +7,7 @@
# timeout's exit value is complicated!
testcmd "times out" '.1 sleep 100 ; echo $?' '124\n' '' ''
testcmd "failure" '-s MONKEY .1 sleep 100 2>/dev/null ; echo $?' '125\n' '' ''
+testcmd "early failure" '2>/dev/null ; echo $?' '125\n' '' ''
testcmd "can't execute" '.1 / 2>/dev/null ; echo $?' '126\n' '' ''
testcmd "can't find" '.1 /does/not/exist 2>/dev/null ; echo $?' '127\n' '' ''
testcmd "custom signal" '-s 3 .1 sleep 100; echo $?' '124\n' '' ''