tests: avoid spurious failure with non-bison yacc
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Feb 2012 16:02:33 +0000 (17:02 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Feb 2012 16:02:33 +0000 (17:02 +0100)
Issue revealed by a failure on NetBSD 5.1.

* tests/suffix10.tap (Makefile.am): Adjust the rule generating
the '.y' files so that such files won't use bison-only features.

tests/suffix10.tap

index 2d66f3b..1b812cb 100755 (executable)
@@ -42,7 +42,7 @@ libfoo_la_SOURCES = foo.x_
          && echo 'void yyerror (char *s) {}' \
          && echo '%}' \
          && echo '%%' \
-         && echo 'WORD: "foo";' \
+         && echo 'foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};' \
          && echo '%%' \
 ## Account for VPATH issues on weaker make implementations.
          && cat `test -f '$<' || echo $(srcdir)/`$<; \