2 # This test fails with tail from textutils-2.0.
3 # It would get something like this:
4 # tail: tail.c:718: recheck: Assertion `valid_file_spec (f)' failed.
6 # due to a race condition in which a dev/inode pair is reused.
8 if test "$VERBOSE" = yes; then
15 trap "cd $pwd; rm -rf $tmp" 0 1 2 3 15
18 mkdir $tmp || test_failure=1
19 cd $tmp || test_failure=1
21 if test $test_failure = 1; then
22 echo 'failure in testing framework'
29 tail --follow=name a foo > err 2>&1 &
31 # Arrange for the tail process to die after 12 seconds.
32 (sleep 12; kill $tail_pid) &
34 echo sleeping for 7 seconds...
36 # Give the backgrounded `tail' a chance to start before removing foo.
37 # Otherwise, without --retry, tail wouldn't try to open `foo' again.
53 test $fail = 1 && cat err