summaryrefslogtreecommitdiff
path: root/tests/tail-2/assert-2.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-11-09 19:28:23 +0000
committerPádraig Brady <P@draigBrady.com>2016-11-10 12:43:42 +0000
commit4d45722d1160a04e4d26fd812da4e0140ad3550c (patch)
tree7262a438a66980918a438e6103563c54b80bfbf0 /tests/tail-2/assert-2.sh
parent659060233ff2cff324be5cf4cc40b782068d45fd (diff)
downloadcoreutils-4d45722d1160a04e4d26fd812da4e0140ad3550c.tar.xz
tail: only retry file open if --retry specifed
* src/tail.c (tail_file): On failure to open a file, set ignore=true when --retry is not specified. * tests/tail-2/assert-2.sh: Adjust to the new behavior. * tests/tail-2/retry.sh: Add a test case. Also change from `tail ... && fail=1` to the more robust `returns_ 1 ...` construct which detects segfaults etc. * NEWS: Document the fix.
Diffstat (limited to 'tests/tail-2/assert-2.sh')
-rwxr-xr-xtests/tail-2/assert-2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tail-2/assert-2.sh b/tests/tail-2/assert-2.sh
index 79d4254cc..03ba8e2e6 100755
--- a/tests/tail-2/assert-2.sh
+++ b/tests/tail-2/assert-2.sh
@@ -38,7 +38,7 @@ for mode in '' '---disable-inotify'; do
rm -f a foo out
touch a || framework_failure_
- tail $mode --follow=name $fastpoll a foo > out 2>&1 & pid=$!
+ tail $mode $fastpoll -F a foo > out 2>&1 & pid=$!
# Wait up to 12.7s for tail to start.
echo x > a || framework_failure_