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