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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"