1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

tests: test for just-fixed tail --pid bug

* tests/tail-2/pid: Ensure tail exits successfully when PID dies.
This commit is contained in:
Jim Meyering
2009-07-30 10:27:51 +02:00
parent d3feea0181
commit 2ac2cace15

View File

@@ -65,4 +65,9 @@ if test -n "$state"; then
kill $pid
fi
# Ensure that tail --pid=PID exits successfully when PID is dead.
# Use an unlikely-to-be-live PID: 2^31-1
getlimits_
tail --pid=$INT_MAX -f /dev/null || fail=1
Exit $fail