summaryrefslogtreecommitdiff
path: root/tests/misc
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
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')
-rwxr-xr-xtests/misc/ls-time4
-rwxr-xr-xtests/misc/xattr8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/misc/ls-time b/tests/misc/ls-time
index 427ca74b4..1d10abb38 100755
--- a/tests/misc/ls-time
+++ b/tests/misc/ls-time
@@ -77,14 +77,14 @@ EOF
;;
esac
-# Now test touch's -a option.
+# Ensure that touch's -a option works.
set -- `ls --full -lu a`
case "$*" in
*" $u1:00.000000000 +0000 a") ;;
*)
# This might be what's making HPUX 11 systems fail this test.
cat >&2 << EOF
-A basic test of touch -a has just failed, so the subsequent
+A fundamental touch -a test has just failed, so the subsequent
tests in this file will not be run.
In the output below, the date of last access for \`a' should
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