mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
* tests/conflicts.at (%nonassoc and eof): Don't exit with status
1 on syntax error; just let yyparse do its thing. * tests/glr-regression.at (Badly Collapsed GLR States): Likewise. * tests/torture.at (AT_DATA_STACK_TORTURE): Likewise. (Exploding the Stack Size with Alloca): (Exploding the Stack Size with Malloc): Expect exit status 2, not 1, since the parser is supposed to blow its stack. Problem reported by twlevo@xs4all.nl.
This commit is contained in:
@@ -404,7 +404,6 @@ static void
|
||||
yyerror (const char *msg)
|
||||
{
|
||||
fprintf (stderr, "%s\n", msg);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* There are YYLVAL_MAX of WAIT_FOR_EOFs. */
|
||||
@@ -452,7 +451,7 @@ AT_PARSER_CHECK([./input 20], 0, [], [ignore])
|
||||
AT_PARSER_CHECK([./input 900], 0, [], [ignore])
|
||||
# Fails: beyond the limit of 10,000 (which we don't reach anyway since we
|
||||
# multiply by two starting at 200 => 5120 is the last possible).
|
||||
AT_PARSER_CHECK([./input 10000], 1, [], [ignore])
|
||||
AT_PARSER_CHECK([./input 10000], 2, [], [ignore])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -473,6 +472,6 @@ AT_PARSER_CHECK([./input 20], 0, [], [ignore])
|
||||
AT_PARSER_CHECK([./input 900], 0, [], [ignore])
|
||||
# Fails: beyond the limit of 10,000 (which we don't reach anyway since we
|
||||
# multiply by two starting at 200 => 5120 is the possible).
|
||||
AT_PARSER_CHECK([./input 10000], 1, [], [ignore])
|
||||
AT_PARSER_CHECK([./input 10000], 2, [], [ignore])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
Reference in New Issue
Block a user