From: Stefano Lattarini Date: Sun, 8 Apr 2012 21:55:48 +0000 (+0200) Subject: tests: avoid a spurious failures for shells with busted 'set -e' X-Git-Tag: v1.11b~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab1a507e362fabc1b33a4cec1522738948acf800;p=platform%2Fupstream%2Fautomake.git tests: avoid a spurious failures for shells with busted 'set -e' 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 --- diff --git a/tests/install-info-dir.test b/tests/install-info-dir.test index c76f424ad..9e40f5426 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