]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Output more information when a test fails.
authorJim Meyering <jim@meyering.net>
Sat, 23 Sep 2000 19:27:33 +0000 (19:27 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 23 Sep 2000 19:27:33 +0000 (19:27 +0000)
tests/ls/time-1

index a7b870d7f1028107c568c3ed58ecd2e75ca848d2..c81fcaecf4534124060840c2f789e7a42a0837a7 100755 (executable)
@@ -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