]> git.saurik.com Git - bison.git/commitdiff
tests: beware of gnulib's need for config.h
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 3 Dec 2012 14:43:57 +0000 (15:43 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 3 Dec 2012 14:44:40 +0000 (15:44 +0100)
* tests/skeletons.at, tests/torture.at: Be sure to include config.h
where appropriate.

tests/skeletons.at
tests/torture.at

index 7b5b8f27695ac847d366f1481f22ebadf3b20f80..fa496c9786dd2e493dcc4ae75496759d84ce677e 100644 (file)
@@ -114,10 +114,10 @@ main (void)
 }
 ]])
 
-AT_DATA([[input-cmd-line.y]],
+AT_DATA_GRAMMAR([[input-cmd-line.y]],
 [AT_GRAM])
 
-AT_DATA([[input-gram.y]],
+AT_DATA_GRAMMAR([[input-gram.y]],
 [[%skeleton "yacc.c"]
 AT_GRAM])
 
index 5aa18900e6155a4705b25fa761d3ed0ea06f19fc..ac9e91ea67e1c45466ceb2f317747d4ceec472f9 100644 (file)
@@ -269,6 +269,7 @@ print <<EOF;
 %error-verbose
 %debug
 %{
+]AT_DATA_SOURCE_PROLOGUE[
 # include <stdio.h>
 # include <stdlib.h>
 # include <assert.h>
@@ -383,7 +384,7 @@ m4_define([AT_DATA_STACK_TORTURE],
 [AT_BISON_OPTION_PUSHDEFS([$2])
 # A grammar of parens growing the stack thanks to right recursion.
 # exp:
-AT_DATA([input.y],
+AT_DATA_GRAMMAR([input.y],
 [[%{
 #include <errno.h>
 #include <limits.h>