summaryrefslogtreecommitdiff
path: root/t/lex-clean-cxx.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-04-26 10:29:42 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-04-26 11:42:07 +0200
commiteb7e8f33f4c020814436e9983481c1d63c278256 (patch)
tree660775c48b185512d301ec526a493c3ec5ec2811 /t/lex-clean-cxx.sh
parent444618b3264dbc1efec2b02f2f3ab6d5e6fb77fe (diff)
downloadautomake-eb7e8f33f4c020814436e9983481c1d63c278256.tar.gz
tests: fix a failure in Lex/C++ tests on Mac OS X
The <cstdio> header from Xcode-4.3.2 on Mac OS X 10.7.3 declares a 'isatty' function with C++ linkage, that conflicts with our dummy definition of the same function, which in turn is required to work around the absence of the unistd.h header on MinGW (see commit 'v1.11-2138-gfeea090' of 11-04-2012). So we tweak the affected tests to work around this new problem as well. This fixes automake bug#11345. * t/lex-clean-cxx.sh ($required): Since we are at it, add an explicit 'c++' requirement. * t/lex-depend-cxx.sh ($required): Likewise. (my-hdr.hxx): Don't include <cstdio>. The "using namespace" directive should still be enough to ensure the content of this header is not valid C, albeit being of course valid C++. Fix unrelated typos in comments. (joe.ll): Adjust, by removing the call to 'printf'. * THANKS: Add entry for reporter "Adam Mercer". Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/lex-clean-cxx.sh')
-rwxr-xr-xt/lex-clean-cxx.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lex-clean-cxx.sh b/t/lex-clean-cxx.sh
index 1c5752425..d1a745b71 100755
--- a/t/lex-clean-cxx.sh
+++ b/t/lex-clean-cxx.sh
@@ -20,7 +20,7 @@
# "make maintainer-clean".
# See also sister test 'lex-clean.test'.
-required=lex
+required='c++ lex'
. ./defs || Exit 1
cat >> configure.ac << 'END'