From 3f02d93be21920299ba19e2dc93b3bcef6c9df81 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 18 Jan 2016 12:41:36 +0000 Subject: tests: adjust delays to avoid false positives * tests/rm/dangling-symlink.sh: The effective delay was only 1.5s. So delay before the operation, and increase the iteration count by 1 to increase the delay to 6.3s. This failure was noticed once on a FreeBSD 10.2 x86_64 virtual machine. * tests/dd/stats.sh: Remove quotes on sleep argument to ensure arguments are accumulated appropriately. * tests/du/move-dir-while-traversing.sh: sleep before operation, to increase the effective delay from 1.6s to 3.2s. * tests/tail-2/flush-initial.sh: Likewise. * tests/tail-2/pipe-f2.sh: Sleep first so that the effective delay matches the commented value. --- tests/du/move-dir-while-traversing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/du') diff --git a/tests/du/move-dir-while-traversing.sh b/tests/du/move-dir-while-traversing.sh index 97eb612b6..e80e94cb7 100755 --- a/tests/du/move-dir-while-traversing.sh +++ b/tests/du/move-dir-while-traversing.sh @@ -81,7 +81,7 @@ trap '' TSTP timeout 6 ./inotify-watch-for-dir-access.py $t/3/a/b > start-msg & pid=$! # Wait for the watcher to start... -nonempty() { test -s start-msg || { sleep $1; return 1; }; } +nonempty() { sleep $1; test -s start-msg; } retry_delay_ nonempty .1 5 || fail=1 # The above watches for an IN_OPEN event on $t/3/a/b, -- cgit v1.2.3-54-g00ecf