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

case.
This commit is contained in:
Xin LI 2015-09-29 17:54:28 +00:00
parent e0efd9ee69
commit b95523e859
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288382

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