diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp/reflink-perm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cp/reflink-perm b/tests/cp/reflink-perm index 77f119f4a..e1c12aa5a 100755 --- a/tests/cp/reflink-perm +++ b/tests/cp/reflink-perm @@ -39,8 +39,11 @@ test "$mode" = "-rwxrwxrwx" || fail=1 test copy -nt file && fail=1 +# Ensure that --attributes-only overrides --reflink completely echo > file2 # file with data cp --reflink=auto --preserve --attributes-only file2 empty_copy || fail=1 test -s empty_copy && fail=1 +cp --reflink=always --preserve --attributes-only file2 empty_copy || fail=1 +test -s empty_copy && fail=1 Exit $fail |