tests: avoid spurious failure with older flex (2.5.4)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 9 May 2013 17:50:38 +0000 (19:50 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 9 May 2013 17:50:38 +0000 (19:50 +0200)
That old version is unfortunately still relevant, being the one
installed on NetBSD 5.1.

* t/lex-multiple.sh: Use the '-o' option rather than the longer
equivalent '--outfile'.  The latter is not supported by older
versions of flex (e.g., flex 2.5.4).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/lex-multiple.sh

index e1c71a1..5759959 100755 (executable)
@@ -43,11 +43,11 @@ liblex_a_SOURCES = 0.l
 
 # We need the output to always be named 'lex.yy.c', in order for
 # ylwrap to pick it up.
-liblex_foo_a_LFLAGS = -Pfoo --outfile=lex.yy.c
+liblex_foo_a_LFLAGS = -Pfoo -olex.yy.c
 liblex_foo_a_SOURCES = a.l
 
 # Ditto.
-liblex_bar_a_LFLAGS = -Pbar_ --outfile=lex.yy.c
+liblex_bar_a_LFLAGS = -Pbar_ -olex.yy.c
 liblex_bar_a_SOURCES = b.l
 END