From: Paul Eggert Date: Sun, 27 Jun 2021 01:23:52 +0000 (-0700) Subject: tail: fix abuse2 test race X-Git-Tag: v9.0~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=177bfdd7ca7bb7fe602ab04756521c9caeccb413;p=thirdparty%2Fcoreutils.git tail: fix abuse2 test race * tests/tail-2/inotify-hash-abuse2.sh (fastpoll): Fix race where tailed file ‘f’ temporarily did not exist. --- diff --git a/tests/tail-2/inotify-hash-abuse2.sh b/tests/tail-2/inotify-hash-abuse2.sh index 2c40236afb..4b36b7a33d 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