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:
Enji Cooper 2014-10-10 19:02:02 +00:00
parent e6a6a5c5d3
commit bd735ec199
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272903

View file

@ -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);