From: Stefano Lattarini Date: Wed, 14 Mar 2012 21:22:40 +0000 (+0100) Subject: tests: fix spurious failure with older m4 X-Git-Tag: v1.11b~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28ed42d905141d2ab4f8431b0599c906fe7c6408;p=thirdparty%2Fautomake.git tests: fix spurious failure with older m4 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 --- diff --git a/tests/cond41.test b/tests/cond41.test index ee17a9580..7c59a0a68 100755 --- a/tests/cond41.test +++ b/tests/cond41.test @@ -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