mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: fix push-pull test
* tests/torture.at: %push-pull-parser is no longer supported.
This commit is contained in:
@@ -427,20 +427,20 @@ main (int argc, const char **argv)
|
|||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
int status;
|
int status;
|
||||||
]m4_bmatch([$2], [%push-],
|
]m4_bmatch([$2], [api.push-pull both],
|
||||||
[[ yypstate *ps = yypstate_new ();
|
[[ yypstate *ps = yypstate_new ();
|
||||||
]])[ for (count = 0; count < 2; ++count)
|
]])[ for (count = 0; count < 2; ++count)
|
||||||
{
|
{
|
||||||
int new_status;
|
int new_status;
|
||||||
yylval = yylval_init;
|
yylval = yylval_init;
|
||||||
]m4_bmatch([$2], [%push-],
|
]m4_bmatch([$2], [api.push-pull both],
|
||||||
[[ new_status = yypull_parse (ps);
|
[[ new_status = yypull_parse (ps);
|
||||||
]],
|
]],
|
||||||
[[ new_status = yyparse ();
|
[[ new_status = yyparse ();
|
||||||
]])[ assert (0 <= count || new_status == status);
|
]])[ assert (0 <= count || new_status == status);
|
||||||
status = new_status;
|
status = new_status;
|
||||||
}
|
}
|
||||||
]m4_bmatch([$2], [%push-],
|
]m4_bmatch([$2], [api.push-pull both],
|
||||||
[[ yypstate_delete (ps);
|
[[ yypstate_delete (ps);
|
||||||
]])[ return status;
|
]])[ return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user