From: Stefano Lattarini Date: Fri, 13 Apr 2012 15:57:12 +0000 (+0200) Subject: tests: avoid spurious failure when 'install-info' program is unavailable X-Git-Tag: v1.11d~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9414efaf789cddbb4434aad9218e2b396d8de87d;p=thirdparty%2Fautomake.git tests: avoid spurious failure when 'install-info' program is unavailable From a report by Dmitry V. Levin: * t/install-info-dir.sh : When 'install-info' is unavailable, create a dummy '${infodir}/dir' file by hand when that file is required by later checks. Signed-off-by: Stefano Lattarini --- diff --git a/t/install-info-dir.sh b/t/install-info-dir.sh index 9e40f5426..d8b32d863 100755 --- a/t/install-info-dir.sh +++ b/t/install-info-dir.sh @@ -155,6 +155,10 @@ for val in no NO n; do done $MAKE install-info +if test $have_installinfo != yes; then + echo 'Does nothing at all, but has a nice name' > $instdir/info/dir +fi + chmod a-w $instdir/info/dir for val in no NO n; do env AM_UPDATE_INFO_DIR="$val" $MAKE uninstall