bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

silence parse-duration test


From: Bruno Haible
Subject: silence parse-duration test
Date: Tue, 16 Dec 2008 12:42:22 +0100
User-agent: KMail/1.9.9

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  <address@hidden>

        * 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

[Prev in Thread] Current Thread [Next in Thread]