mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: check fclose's return value.
* tests/calc.at (_AT_DATA_CALC_Y): Check fclose's return status.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-04-13 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
tests: check fclose's return value.
|
||||
* tests/calc.at (_AT_DATA_CALC_Y): Check fclose's return status.
|
||||
|
||||
2010-04-13 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
tests: don't depend on the actual location type.
|
||||
|
||||
@@ -346,7 +346,8 @@ main (int argc, const char **argv)
|
||||
]AT_SKEL_CC_IF([], [m4_bmatch([$4], [%debug],
|
||||
[ yydebug = 1;])])[
|
||||
status = yyparse (]AT_PARAM_IF([[&result, &count]])[);
|
||||
fclose (input);
|
||||
if (fclose (input))
|
||||
perror ("fclose");
|
||||
if (global_result != result)
|
||||
abort ();
|
||||
if (global_count != count)
|
||||
|
||||
Reference in New Issue
Block a user