summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-01-25 11:09:27 +0100
committerJim Meyering <meyering@redhat.com>2011-01-25 12:41:42 +0100
commit5c501f6fba5c1e2c4b45ce3f44b2da58d559ebe7 (patch)
treef8d57c30c08a78b27e81d526a3a1484bd131ef0b /tests
parent15ea577af7f04c0e9ddbd88fa72768e79a933b60 (diff)
downloadcoreutils-5c501f6fba5c1e2c4b45ce3f44b2da58d559ebe7.tar.xz
tests: avoid rare FP failure in new du test
* tests/du/move-dir-while-traversing: Create an even larger tree to avoid a false-positive failure due to du terminating before the rename is triggered.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/du/move-dir-while-traversing6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/du/move-dir-while-traversing b/tests/du/move-dir-while-traversing
index 96058311a..c711e0262 100755
--- a/tests/du/move-dir-while-traversing
+++ b/tests/du/move-dir-while-traversing
@@ -63,9 +63,11 @@ mkdir d2 || framework_failure
long=d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z
# One iteration of this loop creates a tree with which
# du sometimes completes its traversal before the above rename.
-# Even 5 iterations was not enough in 2 of 7 "make -j20 check" runs on a
+# Five iterations was not enough in 2 of 7 "make -j20 check" runs on a
# 6/12-core system. However, using "10", I saw no failure in 20 trials.
-for i in $(seq 10); do
+# Using 10 iterations was not enough, either.
+# Using 30, I saw no failure in 200 trials.
+for i in $(seq 30); do
mkdir -p $t/3/a/b/c/$i/$long || framework_failure
done
timeout 6 ./inotify-watch-for-dir-access.py $t/3/a/b > start-msg &