* 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
. $srcdir/test-lib.sh
getlimits_
-touch here || framework_failure
+touch empty here || framework_failure
fail=0
# 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