summaryrefslogtreecommitdiff
path: root/tests/cp/fiemap-perf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/fiemap-perf')
-rwxr-xr-xtests/cp/fiemap-perf4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cp/fiemap-perf b/tests/cp/fiemap-perf
index 6c588cbc5..bd8fab8d4 100755
--- a/tests/cp/fiemap-perf
+++ b/tests/cp/fiemap-perf
@@ -29,4 +29,8 @@ timeout 10 truncate -s1T f || framework_failure_
# Nothing can read (much less write) that many bytes in so little time.
timeout 10 cp f f2 || fail=1
+# Ensure that the sparse file copied through fiemap has the same size
+# in bytes as the original.
+test $(stat --printf %s sparse) = $(stat --printf %s fiemap) || fail=1
+
Exit $fail