* tests/install-info-dir.test (foo.texi): Also add proper
`@settitle', `@dircategory' and `@direntry' directive, otherwise
older versions of `install-info' (e.g., 4.8) will fail to create
the `dir' index file in ${infodir}.

Problem revealed by a failure on NetBSD 5.1.
---
 ChangeLog                   |    9 +++++++++
 tests/install-info-dir.test |    8 ++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3cccebc..1e624a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-11-13  Stefano Lattarini  <stefano.lattar...@gmail.com>
+
+       tests: fix spurious failure with older install-info
+       * tests/install-info-dir.test (foo.texi): Also add proper
+       `@settitle', `@dircategory' and `@direntry' directive, otherwise
+       older versions of `install-info' (e.g., 4.8) will fail to create
+       the `dir' index file in ${infodir}.
+       Problem revealed by a failure on NetBSD 5.1.
+
 2011-11-12  Stefano Lattarini  <stefano.lattar...@gmail.com>
 
        maintcheck: fix spurious failure in 'color2.test'
diff --git a/tests/install-info-dir.test b/tests/install-info-dir.test
index f75b115..044bf6d 100755
--- a/tests/install-info-dir.test
+++ b/tests/install-info-dir.test
@@ -43,6 +43,14 @@ END
 cat > foo.texi << 'END'
 \input texinfo
 @setfilename foo.info
+@c All the following directives might be required to allow older
+@c versions of the `install-info' program (e.g., version 4.8) to
+@c create the `dir' index file in ${infodir}.  Don't remove them.
+@settitle foo
+@dircategory Dummy utilities
+@direntry
+* Foo: (foo).  Does nothing at all, but has a nice name.
+@end direntry
 @node Top
 Hello world!
 @bye
-- 
1.7.2.3


Reply via email to