[PATCH] tests: add missing "Exit $fail"

Jim Meyering jim at meyering.net
Wed Oct 13 19:30:58 UTC 2010


Should have tested *first*.
Now the test works the way it's supposed to:

>From 8f3bc25341e2a212e3497028d59ff6a5f3527445 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Wed, 13 Oct 2010 21:30:12 +0200
Subject: [PATCH] tests: add missing "Exit $fail"

---
 t/parser-test |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/t/parser-test b/t/parser-test
index 0005436..cf006c6 100755
--- a/t/parser-test
+++ b/t/parser-test
@@ -34,3 +34,5 @@ compare e1.exp e1.out || fail=1
 parser '1 = = 1' > e2.out 2>&1; test $? = 1 || fail=1
 printf "could not parse '1 = = 1'\n" > e2.exp
 compare e2.exp e2.out || fail=1
+
+Exit $fail
--
1.7.3.1.104.gc752e


More information about the iwhd-devel mailing list