tests: fix spurious failure with older install-info
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 13 Nov 2011 09:25:43 +0000 (10:25 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 13 Nov 2011 09:26:07 +0000 (10:26 +0100)
* 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
tests/install-info-dir.test

index 3cccebc..1e624a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-11-13  Stefano Lattarini  <stefano.lattarini@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.lattarini@gmail.com>
 
        maintcheck: fix spurious failure in 'color2.test'
index f75b115..044bf6d 100755 (executable)
@@ -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