summaryrefslogtreecommitdiff
path: root/tests/tail-2/pid
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-09-30 23:28:13 +0200
committerJim Meyering <meyering@redhat.com>2009-09-30 23:28:13 +0200
commit30a227673eb4b095563c0ff75c6d89a7cae5096a (patch)
tree1716ea9006d44821a95fe5d1558e57724eb9228c /tests/tail-2/pid
parentdd8db19cc7098531900ef13e60488bf74d2cee9a (diff)
downloadcoreutils-30a227673eb4b095563c0ff75c6d89a7cae5096a.tar.xz
tests: tail-2/pid: use a 3-second timeout, not 1
* tests/tail-2/pid: When using the timeout program to ensuring that tail -s.1 --pid=$PID_T_MAX does not wait forever, use a timeout longer than 1 second. A 1-second timeout could be too short on a very busy system, and result in a timeout, and hence false-positive failure. 2009-09-30 Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'tests/tail-2/pid')
-rwxr-xr-xtests/tail-2/pid4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tail-2/pid b/tests/tail-2/pid
index aaf2e01ba..90f168430 100755
--- a/tests/tail-2/pid
+++ b/tests/tail-2/pid
@@ -42,13 +42,13 @@ for inotify in ---disable-inotify ''; do
# Ensure that tail --pid=PID exits successfully when PID is dead.
# Use an unlikely-to-be-live PID
- timeout 1 tail -s.1 --pid=$PID_T_MAX -f $inotify /dev/null
+ timeout 3 tail -s.1 --pid=$PID_T_MAX -f $inotify /dev/null
ret=$?
test $ret = 124 && skip_test_ "pid $PID_T_MAX present"
test $ret = 0 || fail=1
# Ensure fractional sleep parameter is honored with --pid
- timeout 1 tail -s.1 -f $inotify /dev/null --pid=$PID_T_MAX
+ timeout 3 tail -s.1 -f $inotify /dev/null --pid=$PID_T_MAX
test $? = 124 && fail=1
done