Silence the parse-duration test.
authorBruno Haible <bruno@clisp.org>
Tue, 16 Dec 2008 22:56:20 +0000 (23:56 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 16 Dec 2008 22:56:20 +0000 (23:56 +0100)
ChangeLog
tests/test-parse-duration.sh

index aa368f8fc4c6114f4c3aa7ed0abe71d72f4564df..e08a13da691ffd6a8e1480be062d692eec66e164 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-parse-duration.sh: Produce no output when the test
+       succeeds.
+
 2008-12-16  Bruno Haible  <bruno@clisp.org>
 
        * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
index 4c946ac2b1ecb5cd02b9791ca479c311f12ed6fe..120056116548723756c9049b19c38dc82091d8f9 100755 (executable)
@@ -59,13 +59,10 @@ cat > "${tmpf}" <<- _EOF_
        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>&-