From 7f0f58fdd68e7ca86dd5db7effb2c7f94adc4a08 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 14 May 2015 11:43:54 +0100 Subject: 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 --- tests/tail-2/inotify-rotate-resources.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tail-2') 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() -- cgit v1.2.3-70-g09d2