summaryrefslogtreecommitdiff
path: root/tests/tail-2/F-vs-rename.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-10-29 14:32:01 +0000
committerPádraig Brady <P@draigBrady.com>2014-10-30 00:06:11 +0000
commit840da8a7c684ee3cf89394435185a978a910b026 (patch)
tree2468d9a36770bdd6435ace07445dc04946179f22 /tests/tail-2/F-vs-rename.sh
parent111a2b91da142bf6fb9edb7836c1979ba698cf6e (diff)
downloadcoreutils-840da8a7c684ee3cf89394435185a978a910b026.tar.xz
maint: tests: fix comments about retry_delay_
* tests/tail-2/F-vs-missing.sh: Comment with the correct total delay. * tests/tail-2/F-vs-rename.shi: Likewise. * tests/tail-2/flush-initial.sh: Likewise. * tests/tail-2/inotify-hash-abuse.sh: Likewise. * tests/tail-2/pipe-f2.sh: Likewise. * tests/misc/chroot-fail.sh: Initialize can_chroot_root in all cases.
Diffstat (limited to 'tests/tail-2/F-vs-rename.sh')
-rwxr-xr-xtests/tail-2/F-vs-rename.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tail-2/F-vs-rename.sh b/tests/tail-2/F-vs-rename.sh
index 3e31ec8c3..c0fc76c18 100755
--- a/tests/tail-2/F-vs-rename.sh
+++ b/tests/tail-2/F-vs-rename.sh
@@ -34,24 +34,24 @@ check_tail_output()
{ sleep $delay; return 1; }
}
-# Wait up to 6.3s for tail to start
+# Wait up to 12.7s for tail to start
echo x > a
tail_re='^x$' retry_delay_ check_tail_output .1 7 || fail=1
mv a b || fail=1
-# Wait 6.3s for this diagnostic:
+# Wait 12.7s for this diagnostic:
# tail: 'a' has become inaccessible: No such file or directory
tail_re='inaccessible' retry_delay_ check_tail_output .1 7 || fail=1
echo x > a
-# Wait up to 6.3s for this to appear in the output:
+# Wait up to 12.7s for this to appear in the output:
# "tail: '...' has appeared; following end of new file"
tail_re='has appeared' retry_delay_ check_tail_output .1 7 ||
{ echo "$0: a: unexpected delay?"; cat out; fail=1; }
echo y >> b
-# Wait up to 6.3s for "y" to appear in the output:
+# Wait up to 12.7s for "y" to appear in the output:
tail_f_vs_rename_2() {
local delay="$1"
tr '\n' @ < out | grep '@@==> b <==@y@$' > /dev/null ||
@@ -61,7 +61,7 @@ retry_delay_ tail_f_vs_rename_2 .1 7 ||
{ echo "$0: b: unexpected delay?"; cat out; fail=1; }
echo z >> a
-# Wait up to 6.3s for "z" to appear in the output:
+# Wait up to 12.7s for "z" to appear in the output:
tail_f_vs_rename_3() {
local delay="$1"
tr '\n' @ < out | grep '@@==> a <==@z@$' > /dev/null ||