mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03: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:
1 parent
d3feea0181
commit
2ac2cace15
1 file changed
+5
@@ -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