From af129079f04cc53129c9056af3ed3e3ae30fd10a Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 10 Apr 2010 13:38:37 +0200 Subject: [PATCH] tests: check fclose's return value. * tests/calc.at (_AT_DATA_CALC_Y): Check fclose's return status. --- ChangeLog | 5 +++++ tests/calc.at | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5e38cd0c..bc9cbc97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-13 Akim Demaille + + tests: check fclose's return value. + * tests/calc.at (_AT_DATA_CALC_Y): Check fclose's return status. + 2010-04-13 Akim Demaille tests: don't depend on the actual location type. diff --git a/tests/calc.at b/tests/calc.at index 2f85baa4..f102f952 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -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) -- 2.47.2