>From 28ed42d905141d2ab4f8431b0599c906fe7c6408 Mon Sep 17 00:00:00 2001 Message-Id:
From: Stefano Lattarini Date: Wed, 14 Mar 2012 22:22:40 +0100 Subject: [PATCH] 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 --- tests/cond41.test | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tests/cond41.test b/tests/cond41.test index ee17a95..7c59a0a 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 -- 1.7.9