diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-06-26 18:23:52 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-06-26 18:40:26 -0700 |
commit | 177bfdd7ca7bb7fe602ab04756521c9caeccb413 (patch) | |
tree | a2646d78bd8745753970c953d1db2f774c666aec /tests/tail-2/inotify-hash-abuse2.sh | |
parent | 53bb0235d5fdcf6b5e0243b53b1713eb2f5474bc (diff) | |
download | coreutils-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-x | tests/tail-2/inotify-hash-abuse2.sh | 4 |
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 |