From 2ac2cace153dd19aaff5d3e0e6ce68d03146ca92 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 30 Jul 2009 10:27:51 +0200 Subject: [PATCH] tests: test for just-fixed tail --pid bug * tests/tail-2/pid: Ensure tail exits successfully when PID dies. --- tests/tail-2/pid | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tail-2/pid b/tests/tail-2/pid index 9d33e4f2f..446c6dbe3 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 -- 2.11.4.GIT