diff options
Diffstat (limited to 'tests/misc/xattr')
-rwxr-xr-x | tests/misc/xattr | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/misc/xattr b/tests/misc/xattr index 05437d037..2529910dc 100755 --- a/tests/misc/xattr +++ b/tests/misc/xattr @@ -22,7 +22,7 @@ print_ver_ cp mv ginstall # Skip this test if cp was built without xattr support: -touch src dest || framework_failure +touch src dest || framework_failure_ cp --preserve=xattr -n src dest \ || skip_ "coreutils built without xattr support" @@ -30,7 +30,7 @@ cp --preserve=xattr -n src dest \ cleanup_() { rm -rf "$other_partition_tmpdir"; } . "$abs_srcdir/other-fs-tmpdir" b_other="$other_partition_tmpdir/b" -rm -f "$b_other" || framework_failure +rm -f "$b_other" || framework_failure_ # testing xattr name-value pair xattr_name="user.foo" @@ -38,9 +38,9 @@ xattr_value="bar" xattr_pair="$xattr_name=\"$xattr_value\"" # create new file and check its xattrs -touch a || framework_failure +touch a || framework_failure_ getfattr -d a >out_a || skip_ "failed to get xattr of file" -grep -F "$xattr_pair" out_a && framework_failure +grep -F "$xattr_pair" out_a && framework_failure_ # try to set user xattr on file setfattr -n "$xattr_name" -v "$xattr_value" a >out_a \ @@ -71,7 +71,7 @@ getfattr -d d >out_d || skip_ "failed to get xattr of file" grep -F "$xattr_pair" out_d || fail=1 # test if --preserve=xattr works even for files without write access -chmod a-w a || framework_failure +chmod a-w a || framework_failure_ rm -f e cp --preserve=xattr a e || fail=1 getfattr -d e >out_e || skip_ "failed to get xattr of file" @@ -82,9 +82,9 @@ src_perm=$(stat --format=%a a) dst_perm=$(stat --format=%a e) test "$dst_perm" = "$src_perm" || fail=1 -chmod u+w a || framework_failure +chmod u+w a || framework_failure_ -rm b || framework_failure +rm b || framework_failure_ # install should never preserve xattr ginstall a b || fail=1 @@ -105,12 +105,12 @@ EOF # try to set user xattr on file on other partition test_mv=1 -touch "$b_other" || framework_failure +touch "$b_other" || framework_failure_ setfattr -n "$xattr_name" -v "$xattr_value" "$b_other" >out_a \ || test_mv=0 getfattr -d "$b_other" >out_b || test_mv=0 grep -F "$xattr_pair" out_b || test_mv=0 -rm -f "$b_other" || framework_failure +rm -f "$b_other" || framework_failure_ if test $test_mv -eq 1; then # mv should preserve xattr when copying content from one partition to another |