summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/tests/stdio')
-rw-r--r--lib/libc/tests/stdio/fmemopen2_test.c1
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 d137780..9555173 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);
OpenPOWER on IntegriCloud