summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2008-06-09 16:10:47 +0100
committerJim Meyering <meyering@redhat.com>2008-06-10 08:27:52 +0200
commite63c9825da0a71c27e68cd76c6ebf5468b36cdb1 (patch)
tree00e23028a959c1c57a46857cad2502e6c1440241 /tests/misc
parent263bb1be67cae52f2bf20fdf1edf8e4e716ec4ee (diff)
downloadcoreutils-e63c9825da0a71c27e68cd76c6ebf5468b36cdb1.tar.xz
timeout: use system-independent exit values
Change exit values from ETIMEDOUT and ECANCELED, the values of which are system dependent, to 124 and 125 respectively. * src/timeout.c (EXIT_TIMEDOUT, EXIT_CANCELED): Define. (usage, main): Adjust. * coreutils.texi (timeout invocation): Update. * tests/misc/timeout: Adjust.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/timeout2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/timeout b/tests/misc/timeout
index 7f52f6e27..8996fbce3 100755
--- a/tests/misc/timeout
+++ b/tests/misc/timeout
@@ -39,6 +39,6 @@ timeout 1 false && fail=1
# timeout
timeout 1 sleep 2
-test $? = 110 || fail=1
+test $? = 124 || fail=1
(exit $fail); exit $fail