]> git.ipfire.org Git - thirdparty/automake.git/commit
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)
commit28ed42d905141d2ab4f8431b0599c906fe7c6408
tree729a39b1604f940b5ef02dee6e2180ba30d0bad8
parentd63c932a6d73bfa67e76af4bb0a0f1bb07198f1c
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 <stefano.lattarini@gmail.com>
tests/cond41.test