summaryrefslogtreecommitdiff
path: root/tests/tail-2
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-05-14 11:43:54 +0100
committerPádraig Brady <P@draigBrady.com>2015-05-14 14:08:02 +0100
commit7f0f58fdd68e7ca86dd5db7effb2c7f94adc4a08 (patch)
tree6b50d29fb53c6d45bc9f43330abe6bf6b87f6c81 /tests/tail-2
parent45b8fe430dced8c489cb64491b8716cffeeca8c3 (diff)
downloadcoreutils-7f0f58fdd68e7ca86dd5db7effb2c7f94adc4a08.tar.xz
tests: fix async allocation race on BTRFS
* tests/dd/sparse.sh: Sync files before checking allocations, which may be done asynchronously on NFS and BTRFS at least. Also mark this test as very expensive on remote file systems. * tests/du/2g.sh: Likewise, also use fallocate if available to efficiently allocate the large file, otherwise skip on remote file systems. * tests/tail-2/inotify-rotate-resources.sh: Use the more standard is_local_dir_() to check remoteness. * tests/cp/fiemap-empty.sh: Comment on the sync issue for this currerntly unused test. Fixes http://bugs.gnu.org/20570
Diffstat (limited to 'tests/tail-2')
-rwxr-xr-xtests/tail-2/inotify-rotate-resources.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tail-2/inotify-rotate-resources.sh b/tests/tail-2/inotify-rotate-resources.sh
index c13959e22..d6629a87e 100755
--- a/tests/tail-2/inotify-rotate-resources.sh
+++ b/tests/tail-2/inotify-rotate-resources.sh
@@ -25,7 +25,7 @@ grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
require_strace_ 'inotify_add_watch,inotify_rm_watch'
# Quickly skip on remote file systems
-df --local . >/dev/null 2>&1 ||
+is_local_dir . >/dev/null 2>&1 ||
skip_ 'inotify not used on remote file system'
check_tail_output()