[Top][All Lists]

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

[FYI] {micro} tests: slightly stricter checks in t/

From: Stefano Lattarini
Subject: [FYI] {micro} tests: slightly stricter checks in t/
Date: Mon, 3 Jun 2013 12:02:12 +0200

This is a follow-up to the commit fixing automake bug#14493.

* t/ Also check that the built program returns the
correct (i.e., zero) exit status when run.  And improve comments
a little while at it.

Signed-off-by: Stefano Lattarini <address@hidden>
 t/ | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/t/ b/t/
index f872c43..97a46ce 100644
--- a/t/
+++ b/t/
@@ -165,7 +165,11 @@ END
     Good morning, work.
   for p in play work; do
-    # Strip CR characters catering to MinGW programs on MSYS.
+    # The program must run correctly (exit status = 0).
+    ./$p
+    # And it must have the expected output.  Note that we strip extra
+    # CR characters (if any), to cater to MinGW programs on MSYS.
+    # See automake bug#14493.
     ./$p | tr -d '\015' > got.$p || { cat got.$p; exit 1; }
     cat exp.$p
     cat got.$p

reply via email to

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