diff options
author | Akim Demaille <demaille@gostai.com> | 2010-04-10 13:38:37 +0200 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2010-04-14 12:04:43 +0200 |
commit | 2f61c4a2d045455f8b543ce9472099e599139737 (patch) | |
tree | 3d07c785026a65149a2430bfdba4a852b3772125 /tests | |
parent | 16d9244df663152483760bff8e3db7eeba9d4cc1 (diff) | |
download | bison-2f61c4a2d045455f8b543ce9472099e599139737.tar.gz |
tests: check fclose's return value.
* tests/calc.at (_AT_DATA_CALC_Y): Check fclose's return status.
(cherry picked from commit af129079f04cc53129c9056af3ed3e3ae30fd10a)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/calc.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/calc.at b/tests/calc.at index aa1d5e3c..9336113a 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -347,7 +347,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) |