mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
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:
parent
0953460ce1
commit
6b9f7133ab
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue