diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-23 08:54:53 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-23 16:31:23 -0600 |
commit | bd933c125073bf5b071d8ea0631de8aac3a8c3e9 (patch) | |
tree | cc2d38714175100fc90fd9ef1f289239003d4669 /tests/misc/timeout | |
parent | 1ce9e1e5ca1e7491bccedeeced15470d856c9a22 (diff) | |
download | coreutils-bd933c125073bf5b071d8ea0631de8aac3a8c3e9.tar.xz |
tests: enhance stdbuf and timeout tests
* tests/misc/timeout-parameters: Validate exact exit status.
* tests/misc/stdbuf: Likewise.
* tests/misc/timeout: Likewise. Use require_built_.
* tests/misc/arch: Likewise.
Diffstat (limited to 'tests/misc/timeout')
-rwxr-xr-x | tests/misc/timeout | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/misc/timeout b/tests/misc/timeout index 36fdb73a5..08734e6f2 100755 --- a/tests/misc/timeout +++ b/tests/misc/timeout @@ -36,6 +36,8 @@ timeout 0 true || fail=1 # exit status propagation timeout 1 false && fail=1 +timeout 1 sh -c 'exit 2' +test $? = 2 || fail=1 # timeout timeout 1 sleep 2 |