diff options
author | Xin LI <delphij@FreeBSD.org> | 2015-09-29 17:54:28 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2015-09-29 17:54:28 +0000 |
commit | b95523e859168243d427ca8b886a88f79090ddc8 (patch) | |
tree | a38f6ce703b042ace9e377da31103b5471feb8fc /lib/libc | |
parent | e0efd9ee696ad23e66910291a718f3e438470211 (diff) | |
download | src-b95523e859168243d427ca8b886a88f79090ddc8.tar.gz src-b95523e859168243d427ca8b886a88f79090ddc8.zip |
In this context fclose() can never fail, so assert it in the test
case.
Notes
Notes:
svn path=/head/; revision=288382
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/tests/stdio/fmemopen2_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/tests/stdio/fmemopen2_test.c b/lib/libc/tests/stdio/fmemopen2_test.c index d137780f1ce1..9555173a3861 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); |