summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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