From e8d1e1d737ae470ab51bfca81582786f4bb3cab2 Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 29 Sep 2015 17:54:28 +0000 Subject: In this context fclose() can never fail, so assert it in the test case. --- lib/libc/tests/stdio/fmemopen2_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/tests/stdio/fmemopen2_test.c') diff --git a/lib/libc/tests/stdio/fmemopen2_test.c b/lib/libc/tests/stdio/fmemopen2_test.c index d137780..9555173 100644 --- a/lib/libc/tests/stdio/fmemopen2_test.c +++ b/lib/libc/tests/stdio/fmemopen2_test.c @@ -97,6 +97,7 @@ ATF_TC_BODY(test_preexisting, tc) /* Close the FILE *. */ rc = fclose(fp); + ATF_REQUIRE(rc == 0); /* Check that the string was not modified after the first 4 bytes. */ ATF_REQUIRE(strcmp(str, str3) == 0); -- cgit v1.1