svn commit: r288382 - head/lib/libc/tests/stdio
Xin LI
delphij at FreeBSD.org
Tue Sep 29 17:54:29 UTC 2015
Author: delphij
Date: Tue Sep 29 17:54:28 2015
New Revision: 288382
URL: https://svnweb.freebsd.org/changeset/base/288382
Log:
In this context fclose() can never fail, so assert it in the test
case.
Modified:
head/lib/libc/tests/stdio/fmemopen2_test.c
Modified: head/lib/libc/tests/stdio/fmemopen2_test.c
==============================================================================
--- head/lib/libc/tests/stdio/fmemopen2_test.c Tue Sep 29 17:54:01 2015 (r288381)
+++ head/lib/libc/tests/stdio/fmemopen2_test.c Tue Sep 29 17:54:28 2015 (r288382)
@@ -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);
More information about the svn-src-head
mailing list