aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2024-04-12 11:58:37 -0500
committerRob Landley <rob@landley.net>2024-04-12 11:58:37 -0500
commitf2079e0f446bb40f4cd568651c0c6c030b3aefb6 (patch)
treee53ef5fc1f2f61b69103ebc0e8af6c2712952029
parent122bbe602f50b7fe747751370035f6fd55e674d0 (diff)
downloadtoybox-f2079e0f446bb40f4cd568651c0c6c030b3aefb6.tar.gz
A sufficiently loaded server may not be able to fork()/exec()
in .1 seconds (Elliott saw this), so give it a full second.
-rwxr-xr-xtests/timeout.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/timeout.test b/tests/timeout.test
index 694540ae..624f3650 100755
--- a/tests/timeout.test
+++ b/tests/timeout.test
@@ -8,13 +8,13 @@
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 "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' '' ''
testcmd "killed" '-s 9 .1 sleep 100; echo $?' '137\n' '' ''
testcmd "TERM" '-s TERM .1 sleep 100; echo $?' '124\n' '' ''
-testcmd "exit 0" '.1 true ; echo $?' '0\n' '' ''
-testcmd "exit 1" '.1 false ; echo $?' '1\n' '' ''
+testcmd "exit 0" '1 true ; echo $?' '0\n' '' ''
+testcmd "exit 1" '1 false ; echo $?' '1\n' '' ''
testcmd "--preserve-status" '--preserve-status .1 sleep 100 ; echo $?' '143\n' '' ''
testcmd "--preserve-status killed" '--preserve-status -s 9 .1 sleep 100 ; echo $?' '137\n' '' ''