diff options
author | Peter Rosin <peda@lysator.liu.se> | 2012-03-06 09:50:09 +0100 |
---|---|---|
committer | Peter Rosin <peda@lysator.liu.se> | 2012-03-06 09:50:09 +0100 |
commit | 6f4b08da92043093e29deddfec005900d496ff98 (patch) | |
tree | c441b95323aace0916d02c579feaabdd3d330410 /tests/lex-clean.test | |
parent | 5f624a6af8abbbd9695bee8d21d0713238ccba03 (diff) | |
download | automake-6f4b08da92043093e29deddfec005900d496ff98.tar.gz |
tests: explicitly state that our lexers do not require unistd.h
By default, GNU flex generates code that is dependent on unistd.h,
which is not portable to non-ANSI systems causing spurious test
failures.
* tests/cond35.test (tscan.l): Define YY_NO_UNISTD_H.
* tests/lex-clean.test (lexer.l): Likewise.
* tests/lex-depend.test (joe.l): Likewise.
* tests/lex-lib-external.test (foo.l): Likewise.
* tests/lex-lib.test (foo.l): Likewise.
* tests/lex-libobj.test (foo.l): Likewise.
* tests/lex-line.test (zardoz.l): Likewise.
* tests/lex-nodist.test (lexer.l): Likewise.
* tests/lex-noyywrap.test (foo.l): Likewise.
* tests/lex-pr204.test (lexer.l): Likewise.
* tests/lex-subobj-nodep.test (subl/sl.l): Likewise.
* tests/lex3.test (foo.l): Likewise.
* tests/lex5.test (foo/foo.l): Likewise.
* tests/lexvpath.test (lexer.l): Likewise.
* tests/silent-lex.test (foo.l): Likewise.
* tests/silent-many-gcc.test (foo5.l): Likewise.
* tests/silent-many-generic.test (foo5.l): Likewise.
* tests/lex-clean-cxx.test (parsefoo.lxx): Likewise. Also specify
the never-interactive option to prevent usage of the non-ANSI
function isatty(3) (from unistd.h).
* tests/lex-depend-cxx.test (joe.ll): Likewise.
* tests/README: Describe these quirks.
Diffstat (limited to 'tests/lex-clean.test')
-rwxr-xr-x | tests/lex-clean.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lex-clean.test b/tests/lex-clean.test index 62ed6bbdf..6988f92b6 100755 --- a/tests/lex-clean.test +++ b/tests/lex-clean.test @@ -54,6 +54,9 @@ LDADD = $(LEXLIB) END cat > lexer.l << 'END' +%{ +#define YY_NO_UNISTD_H 1 +%} %% "GOOD" return EOF; . |