summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew D Warshall <warshall@99main.com>2012-07-18 13:53:53 +0100
committerPádraig Brady <P@draigBrady.com>2012-07-18 17:22:27 +0100
commit4fcef6991da9b7a5225a386abb0ca5f26939c756 (patch)
tree503cfe54f4de8eebe5f416b8472f5ae865d7f003 /tests
parent2f90a1b19161d4924c251dce9cf5ff8a6d4c1d13 (diff)
downloadcoreutils-4fcef6991da9b7a5225a386abb0ca5f26939c756.tar.xz
tests: fiemap-perf: avoid a false failure on ext2
* tests/cp/fiemap-perf: Skip the test on ext2 file systems, as we do for ext3. Also skip the test if we can't create a 1TiB file, which might not be supported on certain file systems. Signed-off-by: Pádraig Brady <P@draigBrady.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/fiemap-perf11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/cp/fiemap-perf b/tests/cp/fiemap-perf
index e418728ee..ca093b5a0 100755
--- a/tests/cp/fiemap-perf
+++ b/tests/cp/fiemap-perf
@@ -24,13 +24,14 @@ touch fiemap_chk
fiemap_capable_ fiemap_chk ||
skip_ "this file system lacks FIEMAP support"
-# Exclude ext3 (or unknown fs types)
-# as the emulated extent scanning is slow
-df -t ext3 . >/dev/null &&
- skip_ "ext3 has known slow FIEMAP scanning"
+# Exclude ext[23] (or unknown fs types)
+# as the emulated extent scanning can be slow
+df -t ext2 -t ext3 . >/dev/null &&
+ skip_ "ext[23] can have slow FIEMAP scanning"
# Create a large-but-sparse file.
-timeout 10 truncate -s1T f || framework_failure_
+timeout 10 truncate -s1T f ||
+ skip_ "unable to create a 1 TiB sparse file"
# Disable this test on old BTRFS (e.g. Fedora 14)
# which reports (unwritten) extents for holes.