From 5ef03d6c5bb8d5d822a32db465894c8e051e38ac Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 29 Mar 2010 08:21:43 +0200 Subject: tests: avoid spurious sc_prohibit_test_minus_ao syntax-check failures * tests/misc/ls-time: Change comments and diagnostics. * tests/misc/xattr: Likewise. --- tests/misc/xattr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/misc/xattr') diff --git a/tests/misc/xattr b/tests/misc/xattr index 5b3e04923..21e0f1ccb 100755 --- a/tests/misc/xattr +++ b/tests/misc/xattr @@ -66,24 +66,24 @@ cp --preserve=xattr a b || fail=1 getfattr -d b >out_b || skip_test_ "failed to get xattr of file" grep -F "$xattr_pair" out_b || fail=1 -#test if --preserve=all option works +# test if --preserve=all option works cp --preserve=all a c || fail=1 getfattr -d c >out_c || skip_test_ "failed to get xattr of file" grep -F "$xattr_pair" out_c || fail=1 -#test if -a option works without any diagnostics +# cp's -a option must produce no diagnostics. cp -a a d 2>err && test -s err && fail=1 getfattr -d d >out_d || skip_test_ "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 +# test if --preserve=xattr works even for files without write access chmod a-w a || framework_failure rm -f e cp --preserve=xattr a e || fail=1 getfattr -d e >out_e || skip_test_ "failed to get xattr of file" grep -F "$xattr_pair" out_e || fail=1 -#Ensure that permission bits are preserved, too. +# Ensure that permission bits are preserved, too. src_perm=$(stat --format=%a a) dst_perm=$(stat --format=%a e) test "$dst_perm" = "$src_perm" || fail=1 -- cgit v1.2.3-54-g00ecf