diff options
author | Jim Meyering <meyering@redhat.com> | 2009-10-10 15:01:05 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-10-10 15:05:09 +0200 |
commit | f7b1873805fae0dd0844f77c9a2edc8d48931c08 (patch) | |
tree | 0a092e270d2d8e8acae86af5d85fbf33349ef023 /tests/tail-2/pid | |
parent | c2bebf63eda13c158035d9ec8896835af01833e5 (diff) | |
download | coreutils-f7b1873805fae0dd0844f77c9a2edc8d48931c08.tar.xz |
tests: adjust tail-2/pid to work around FreeBSD 6.1 failure
* tests/tail-2/pid: Run tail -f --pid=... on an actual file, not on
/dev/null, to avoid this failure on FreeBSD 6.1: tail: /dev/null:
cannot change nonblocking mode: Inappropriate ioctl for device
Diffstat (limited to 'tests/tail-2/pid')
-rwxr-xr-x | tests/tail-2/pid | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tail-2/pid b/tests/tail-2/pid index 760e289bc..0a4b81bd3 100755 --- a/tests/tail-2/pid +++ b/tests/tail-2/pid @@ -24,7 +24,7 @@ fi . $srcdir/test-lib.sh getlimits_ -touch here || framework_failure +touch empty here || framework_failure fail=0 @@ -43,13 +43,13 @@ for inotify in ---disable-inotify ''; do # Ensure that tail --pid=PID exits with success status when PID is dead. # Use an unlikely-to-be-live PID - timeout 3 tail -f -s.1 --pid=$PID_T_MAX $inotify /dev/null + timeout 3 tail -f -s.1 --pid=$PID_T_MAX $inotify empty ret=$? test $ret = 124 && skip_test_ "pid $PID_T_MAX present or tail too slow" test $ret = 0 || fail=1 # Ensure tail doesn't wait for data when PID is dead - timeout 3 tail -f -s10 --pid=$PID_T_MAX $inotify /dev/null + timeout 3 tail -f -s10 --pid=$PID_T_MAX $inotify empty test $? = 124 && fail=1 done |