tests: beware of gnulib's need for config.h

* tests/skeletons.at, tests/torture.at: Be sure to include config.h
where appropriate.
This commit is contained in:
Akim Demaille
2012-12-03 15:43:57 +01:00
parent 8aef6e0db5
commit 6ee95cd0d9
2 changed files with 4 additions and 3 deletions

View File

@@ -114,10 +114,10 @@ main (void)
} }
]]) ]])
AT_DATA([[input-cmd-line.y]], AT_DATA_GRAMMAR([[input-cmd-line.y]],
[AT_GRAM]) [AT_GRAM])
AT_DATA([[input-gram.y]], AT_DATA_GRAMMAR([[input-gram.y]],
[[%skeleton "yacc.c"] [[%skeleton "yacc.c"]
AT_GRAM]) AT_GRAM])

View File

@@ -269,6 +269,7 @@ print <<EOF;
%error-verbose %error-verbose
%debug %debug
%{ %{
]AT_DATA_SOURCE_PROLOGUE[
# include <stdio.h> # include <stdio.h>
# include <stdlib.h> # include <stdlib.h>
# include <assert.h> # include <assert.h>
@@ -383,7 +384,7 @@ m4_define([AT_DATA_STACK_TORTURE],
[AT_BISON_OPTION_PUSHDEFS([$2]) [AT_BISON_OPTION_PUSHDEFS([$2])
# A grammar of parens growing the stack thanks to right recursion. # A grammar of parens growing the stack thanks to right recursion.
# exp: # exp:
AT_DATA([input.y], AT_DATA_GRAMMAR([input.y],
[[%{ [[%{
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>