libc: Add one more check in new fmemopen test
Reported by: jrtc27
Fixes: 0953460ce1 ("libc: fix access mode tests in fmemopen(3)")
This commit is contained in:
@@ -296,6 +296,7 @@ ATF_TC_BODY(test_rdonly_wronly, tc)
|
||||
fclose(fp);
|
||||
|
||||
fp = fmemopen(buf_orig, sizeof(buf), "w");
|
||||
ATF_REQUIRE(fp != NULL);
|
||||
sz = fread(buf, sizeof(buf), 1, fp);
|
||||
ATF_REQUIRE(sz == 0);
|
||||
ATF_REQUIRE(errno == EBADF);
|
||||
|
||||
Reference in New Issue
Block a user