mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272903
|
@ -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