Hi Bruce,

As mentioned in
<http://lists.gnu.org/archive/html/bug-gnulib/2008-11/msg00237.html>
units tests are better silent when they succeed. OK to silence the
parse-duration test?


2008-12-16  Bruno Haible  <br...@clisp.org>

        * tests/test-parse-duration.sh: Produce no output when the test
        succeeds.

--- tests/test-parse-duration.sh.orig   2008-12-16 12:41:54.000000000 +0100
+++ tests/test-parse-duration.sh        2008-12-16 12:36:54.000000000 +0100
@@ -59,13 +59,10 @@
        P 1-2-25 T 5:6:7
        _EOF_
 
-ls -l "${tmpf}"
-
 exec 3< "${tmpf}"
 while read -u3 line
 do
-    v=`${exe} "${line}"` || die "Failed: ${exe} '${line}'"
+    v=`${exe} "${line}"` || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; 
}
     test $v -eq 38898367 || die $v is not 38898367
-    echo OK: ${line}
 done
 exec 3>&-


Reply via email to