From bce0fe7fa095edfe52d0724d9287a9043346316b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 26 Jun 2021 18:23:52 -0700 Subject: [PATCH 2/3] tail: fix abuse2 test race MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tests/tail-2/inotify-hash-abuse2.sh (fastpoll): Fix race where tailed file ‘f’ temporarily did not exist. --- tests/tail-2/inotify-hash-abuse2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tail-2/inotify-hash-abuse2.sh b/tests/tail-2/inotify-hash-abuse2.sh index 2c40236af..4b36b7a33 100755 --- a/tests/tail-2/inotify-hash-abuse2.sh +++ b/tests/tail-2/inotify-hash-abuse2.sh @@ -33,8 +33,8 @@ for mode in '' '---disable-inotify'; do for i in $(seq 200); do kill -0 $pid || break; - mv f g - touch f + touch g + mv g f done # Ensure tail hasn't aborted -- 2.30.2