summaryrefslogtreecommitdiff
path: root/tests/ls
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-09-23 19:27:33 +0000
committerJim Meyering <jim@meyering.net>2000-09-23 19:27:33 +0000
commit79043436ce42f780057fbd9bccceb9f7ccecb579 (patch)
tree066e651e71d92c4553ef5faf26a54a3ca0480ec4 /tests/ls
parent3584f04f59d161e214e6a950013eb6ea42f27ad1 (diff)
downloadcoreutils-79043436ce42f780057fbd9bccceb9f7ccecb579.tar.xz
Output more information when a test fails.
Diffstat (limited to 'tests/ls')
-rwxr-xr-xtests/ls/time-116
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/ls/time-1 b/tests/ls/time-1
index a7b870d7f..c81fcaecf 100755
--- a/tests/ls/time-1
+++ b/tests/ls/time-1
@@ -58,7 +58,12 @@ case "$*" in
cat >&2 << \EOF
A basic test of touch -a has just failed, so the subsequent
tests in this file will not be run.
+
+In the output below, the date of last modification for `a' should
+have been Jan 15 23:00:00 1998.
EOF
+ #`
+ ls --full -l a
framework_failure=1
;;
esac
@@ -72,7 +77,11 @@ case "$*" in
cat >&2 << \EOF
A basic test of touch -m 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
+have been Jan 14 11:00:00 1998.
EOF
+ ls --full -lu a
framework_failure=1
;;
esac
@@ -98,9 +107,14 @@ else
# In spite of documentation, (e.g., stat(2)), neither link nor chmod
# update a file's st_ctime on SunOS4.1.4.
cat >&2 << \EOF
-failed ls ctime test -- this is expected at least for SunOS4.1.4
+failed ls ctime test -- this failure is expected at least for SunOS4.1.4
and for tmpfs file systems on Solaris 5.5.1.
+
+In the output below, `c' should have had a ctime more recent than
+that of `a', but does not.
EOF
+ #'
+ ls -ctl --full-time a c
fail=1
fi