mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
FreeBSD returns ENOTTY instead of EBADF in ttyname_r; mark it as an expected
failure PR: 191936 In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
e6a6a5c5d3
commit
bd735ec199
1 changed files with 3 additions and 0 deletions
|
|
@ -107,6 +107,9 @@ ATF_TC_BODY(ttyname_r_err, tc)
|
|||
ATF_REQUIRE(rv == ERANGE);
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
atf_tc_expect_fail("FreeBSD returns ENOTTY instead of EBADF; see bin/191936");
|
||||
#endif
|
||||
rv = ttyname_r(-1, buf, ttymax);
|
||||
ATF_REQUIRE(rv == EBADF);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue