In this context fclose() can never fail, so assert it in the test

case.
This commit is contained in:
delphij 2015-09-29 17:54:28 +00:00
parent 73b98f0a15
commit e8d1e1d737

View File

@ -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);