]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: work around bug#7884 in many yacc/lex tests
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 7 Feb 2012 08:30:37 +0000 (09:30 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 7 Feb 2012 08:31:03 +0000 (09:31 +0100)
commit818bc406278a138da6480412d3c289f91e6dbfda
tree56edaa07587a7b672cf5e2bade4ad736f24a9120
parentdf6841b7d543abc9731b4b42a2392089a41fb838
tests: work around bug#7884 in many yacc/lex tests

Due to automake bug#7884, many test cases on Yacc/Lex support are
failing when run with FreeBSD make.  Since these failures are all
due to the same bug, and that bug is well understood and already
explicitly exposed in the dedicated 'yacc-dist-nobuild.test' test,
the reported failures are mostly noise, that not only is annoying,
but which might end up covering different real bugs or regressions.

Thus we minimize such spurious failures, by ensuring the commands
triggering them (most of them being "make distcheck" invocations)
will be skipped when $MAKE suffers of the bug/limitation that
triggers automake bug#7884.

* tests/defs.in (useless_vpath_rebuild): New function.
(yl_distcheck): Likewise.
* tests/lex3.test, tests/subpkg-yacc.test, tests/yacc-basic.test,
tests/yacc-cxx.test, tests/yacc-d-basic.test, tests/yacc-d-cxx.test,
tests/yacc-dist-nobuild-subdir.test : Use them to avoid extra
failures caused by automake bug#7884.  Where possible, throw in
some related simplifications.
tests/defs.in
tests/lex3.test
tests/subpkg-yacc.test
tests/yacc-basic.test
tests/yacc-cxx.test
tests/yacc-d-basic.test
tests/yacc-d-cxx.test
tests/yacc-dist-nobuild-subdir.test