summaryrefslogtreecommitdiff
path: root/tests/tail-2/inotify-hash-abuse2.sh
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-06-26 18:23:52 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-06-26 18:40:26 -0700
commit177bfdd7ca7bb7fe602ab04756521c9caeccb413 (patch)
treea2646d78bd8745753970c953d1db2f774c666aec /tests/tail-2/inotify-hash-abuse2.sh
parent53bb0235d5fdcf6b5e0243b53b1713eb2f5474bc (diff)
downloadcoreutils-177bfdd7ca7bb7fe602ab04756521c9caeccb413.tar.gz
tail: fix abuse2 test race
* tests/tail-2/inotify-hash-abuse2.sh (fastpoll): Fix race where tailed file ‘f’ temporarily did not exist.
Diffstat (limited to 'tests/tail-2/inotify-hash-abuse2.sh')
-rwxr-xr-xtests/tail-2/inotify-hash-abuse2.sh4
1 files 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