summaryrefslogtreecommitdiff
path: root/tests/misc/xattr
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-03-29 08:21:43 +0200
committerJim Meyering <meyering@redhat.com>2010-03-29 08:28:51 +0200
commit5ef03d6c5bb8d5d822a32db465894c8e051e38ac (patch)
treed064453967c61628b5169fd4572e3f0d24f0a95b /tests/misc/xattr
parent8915368ee3f9580155a8a3119a27e9615368a846 (diff)
downloadcoreutils-5ef03d6c5bb8d5d822a32db465894c8e051e38ac.tar.xz
tests: avoid spurious sc_prohibit_test_minus_ao syntax-check failures
* tests/misc/ls-time: Change comments and diagnostics. * tests/misc/xattr: Likewise.
Diffstat (limited to 'tests/misc/xattr')
-rwxr-xr-xtests/misc/xattr8
1 files changed, 4 insertions, 4 deletions
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