summaryrefslogtreecommitdiff
path: root/tests/cp/reflink-auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/reflink-auto')
-rwxr-xr-xtests/cp/reflink-auto3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cp/reflink-auto b/tests/cp/reflink-auto
index d1f6b2bca..5e39b7265 100755
--- a/tests/cp/reflink-auto
+++ b/tests/cp/reflink-auto
@@ -28,8 +28,9 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
a_other="$other_partition_tmpdir/a"
rm -f "$a_other" || framework_failure
-echo non_zero_size > "$a_other"
+echo non_zero_size > "$a_other" || framework_failure
+fail=0
# we shouldn't be able to reflink() files on separate partitions
cp --reflink "$a_other" b && fail=1