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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user