summaryrefslogtreecommitdiff
path: root/tests/cp
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/cp
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/cp')
-rwxr-xr-xtests/cp/fiemap-empty.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cp/fiemap-empty.sh b/tests/cp/fiemap-empty.sh
index a5eaac5d7..b3b2cd72b 100755
--- a/tests/cp/fiemap-empty.sh
+++ b/tests/cp/fiemap-empty.sh
@@ -22,6 +22,7 @@ print_ver_ cp
# FIXME: enable any part of this test that is still relevant,
# or, if none are relevant (now that cp does not handle unwritten
# extents), just remove the test altogether.
+# Note also if checking allocations may need to sync first on BTRFS at least
skip_ 'disabled for now'
touch fiemap_chk