]> git.ipfire.org Git - thirdparty/automake.git/commit
parallel-tests: fix another BSD parallel make issue
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 Feb 2012 12:59:26 +0000 (13:59 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 Feb 2012 22:12:30 +0000 (23:12 +0100)
commite1606b320367120dbd9353913bb6f5bf3260c14e
tree2a6ce8f39d3588e537cdc496093d17030cc08697
parent21af8bfd077dad5411ba07bd2208b6d216ad686f
parallel-tests: fix another BSD parallel make issue

When BSD make is run in parallel mode, it apparently strips any
leading directory component from the automatic variable '$*' (of
course, against what POSIX mandates).  This was causing FreeBSD 9.0
make and NetBSD 5.1 make to spuriously fail with automake-generated
test harnesses if subdir tests were present *and* make was being
run in parallel mode.  This issue affected also the Automake own
testsuite.

* lib/am/check2.am (am__set_b): New internal variable.
(%OBJ%, %EXT%.log, %EXT%$(EXEEXT).log): Use it to work around
the described BSD make issue.
* tests/parallel-tests3.test: Enhanced to expose the bug.
* tests/parallel-tests-subdir.test: Enhance a little, since we
are at it.
* NEWS: Update.
NEWS
lib/am/check2.am
tests/parallel-tests-subdir.test
tests/parallel-tests3.test