From: Jim Meyering Date: Sat, 23 Sep 2000 19:27:33 +0000 (+0000) Subject: Output more information when a test fails. X-Git-Tag: FILEUTILS-4_0_27~11 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=79043436ce42f780057fbd9bccceb9f7ccecb579;p=thirdparty%2Fcoreutils.git Output more information when a test fails. --- diff --git a/tests/ls/time-1 b/tests/ls/time-1 index a7b870d7f1..c81fcaecf4 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