summaryrefslogtreecommitdiff
path: root/t/lex-depend-cxx.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-04-11 15:25:37 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-04-11 15:25:37 +0200
commitfeea090263edbe06ab791a838b4a3d1fce9fd7e5 (patch)
tree57f58987f866a011342925e1deedcab9d82c3bf3 /t/lex-depend-cxx.sh
parent76f0605a6dd790ab43cc608db11ac2141ddf46c0 (diff)
downloadautomake-feea090263edbe06ab791a838b4a3d1fce9fd7e5.tar.gz
tests: avoid spurious failures in tests on C++ and lex
This is a follow-up to commit v1.11-2128-g7f2bc63 of 09-04-2012, "tests: avoid spurious failures with non-flex 'lex' programs and C++". It is required to avoid a couple of spurious failures on Solaris and NetBSD systems (at least). See also automake bug#11185. * t/lex-clean-cxx.sh (parsefoo.lxx): Do not declared the provided dummy 'isatty' function as 'static', since that might conflict with a declaration of it as 'extern' pulled in through other system * t/lex-depend-cxx.sh (joe.ll): Likewise. * t/README: Update advice, to avoid similar issues in the future. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/lex-depend-cxx.sh')
-rwxr-xr-xt/lex-depend-cxx.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lex-depend-cxx.sh b/t/lex-depend-cxx.sh
index 8e7a2391c..490516f0e 100755
--- a/t/lex-depend-cxx.sh
+++ b/t/lex-depend-cxx.sh
@@ -48,7 +48,7 @@ END
cat > joe.ll << 'END'
%{
#define YY_NO_UNISTD_H 1
-static int isatty (int fd) { return 0; }
+int isatty (int fd) { return 0; }
%}
%%
"foo" return EOF;