From ab1a507e362fabc1b33a4cec1522738948acf800 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sun, 8 Apr 2012 23:55:48 +0200 Subject: [PATCH] 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 --- tests/install-info-dir.test | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.2