tests: fix spurious failure with older m4
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 14 Mar 2012 21:22:40 +0000 (22:22 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 14 Mar 2012 21:22:40 +0000 (22:22 +0100)
Reported by Panther Martin in automake bug#10866, diagnosed by
Panther Martin and Eric Blake.

Older GNU m4 versions (e.g., 1.4.6) did error reporting at the end
of an error construct rather than the beginning.  This was causing
a spurious testsuite failure due to an off-by-one error in the line
number reported in an aclocal diagnostic.

* tests/cond41.test: Keep all the body of the 'AM_COND_IF'
invocation on a single line, to avoid the off-by-one error.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
tests/cond41.test

index ee17a95..7c59a0a 100755 (executable)
@@ -19,8 +19,7 @@
 . ./defs || Exit 1
 
 cat >>configure.ac <<'END'
-AM_COND_IF([BAD_COND],
-          [AC_CONFIG_FILES([file1])])
+AM_COND_IF([BAD_COND], [AC_CONFIG_FILES([file1])])
 AC_OUTPUT
 END