From: Jim Meyering Date: Thu, 30 Jul 2009 08:27:51 +0000 (+0200) Subject: tests: test for just-fixed tail --pid bug X-Git-Tag: v7.5~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ac2cace153dd19aaff5d3e0e6ce68d03146ca92;p=thirdparty%2Fcoreutils.git tests: test for just-fixed tail --pid bug * tests/tail-2/pid: Ensure tail exits successfully when PID dies. --- diff --git a/tests/tail-2/pid b/tests/tail-2/pid index 9d33e4f2f0..446c6dbe38 100755 --- a/tests/tail-2/pid +++ b/tests/tail-2/pid @@ -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