tests: avoid spurious failures with non-flex 'lex' programs and C++
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 8 Apr 2012 22:17:48 +0000 (00:17 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 8 Apr 2012 22:22:22 +0000 (00:22 +0200)
commit7f2bc63991aeed6ddec5f28dc2162a281ff8ee3d
treebbe7fc14afea225e8da61a982135a66013193861
parentab1a507e362fabc1b33a4cec1522738948acf800
tests: avoid spurious failures with non-flex 'lex' programs and C++

This change fixes automake bug#11185.

The commit v1.11-2058-g6f4b08d of 06-03-2012, "tests: explicitly
state that our lexers do not require unistd.h" has broken the tests
'lex-clean-cxx.test' and 'lex-depend-cxx.test' on Solaris, where lex
is not flex and does not understand the "%option never-interactive"
directive.  Remove the use of this directive, resorting to defining
a dummy 'isatty()' function instead to keep the flex-generated tests
able to compile also on MinGW/MSYS.

* tests/lex-clean-cxx.test (parsefoo.lxx): Define a dummy 'isatty()'
function.
* tests/lex-depend-cxx.test (joe.ll): Likewise.
* tests/README: Adjust.  Fix an unrelated typo since we are at it.

Co-authored-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
tests/README
tests/lex-clean-cxx.test
tests/lex-depend-cxx.test