automake-patches
[Top][All Lists]
Advanced

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

[FYI] {master} tests: avoid a spurious failures for shells with busted '


From: Stefano Lattarini
Subject: [FYI] {master} tests: avoid a spurious failures for shells with busted 'set -e'
Date: Sun, 8 Apr 2012 23:56:49 +0200

Some versions of the BSD Korn shell wrongly bail out when the
'errexit' shell flag is active and the left-hand command in a
"&&" list fails and that list is the *last* command of the body
of a "while" or "for" loop.

* tests/install-info-dir.test: Work around that behaviour.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 tests/install-info-dir.test |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/install-info-dir.test b/tests/install-info-dir.test
index c76f424..9e40f54 100755
--- a/tests/install-info-dir.test
+++ b/tests/install-info-dir.test
@@ -170,6 +170,7 @@ if test $have_installinfo = yes; then
     env AM_UPDATE_INFO_DIR="$val" $MAKE uninstall
     test ! -f $instdir/info/foo.info
     $FGREP 'but has a nice name' $instdir/info/dir && Exit 1
+    : For shells with busted 'set -e'.
   done
 fi
 
-- 
1.7.9




reply via email to

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