diff --git a/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c b/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c index 03ed953914..c182283bbd 100644 --- a/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c +++ b/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c @@ -9,12 +9,12 @@ static int fclose_entry(void) perror("fopen fail"); return -1; } - if(fclose(stream)) + if(fclose(stream) != 0) { perror("fclose fail"); return -1; } - if(fclose(stream)) + else { printf("fclose sucess \n"); }