automake-patches
[Top][All Lists]
Advanced

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

[PATCH] tests: fix a failure when install-info is not available


From: Dmitry V. Levin
Subject: [PATCH] tests: fix a failure when install-info is not available
Date: Fri, 13 Apr 2012 04:58:24 +0400

This fixes a regression introduced by commit v1.11-766-g619c1b2.

* tests/install-info-dir.test: Do not attempt to read or modify
$instdir/info/dir file when install-info is not available.

Signed-off-by: Dmitry V. Levin <address@hidden>
---
 tests/install-info-dir.test |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/install-info-dir.test b/tests/install-info-dir.test
index 405480d..1b75e8d 100755
--- a/tests/install-info-dir.test
+++ b/tests/install-info-dir.test
@@ -155,16 +155,16 @@ for val in no NO n; do
   test -f $instdir/info/foo.info
   test ! -f $instdir/info/dir
 done
 
+if test $have_installinfo = yes; then
 $MAKE install-info
 chmod a-w $instdir/info/dir
 for val in no NO n; do
   env AM_UPDATE_INFO_DIR="$val" $MAKE uninstall
   $FGREP 'Does nothing at all, but has a nice name' $instdir/info/dir
 done
 
-if test $have_installinfo = yes; then
   for val in 'yes' 'who cares!'; do
     rm -rf $instdir
     env AM_UPDATE_INFO_DIR="$val" $MAKE install-info
     test -f $instdir/info/foo.info

-- 
ldv



reply via email to

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