From fb8fcd2a04cbf8224f6a40717c3f9a8a2c24fdbd Mon Sep 17 00:00:00 2001 From: jilles Date: Sun, 8 Feb 2015 22:24:03 +0000 Subject: MFC r278038: ttyname_r(): Return actual error, not always [ENOTTY]. Adjust the test that used to fail because of this bug. PR: 191936 --- contrib/netbsd-tests/lib/libc/gen/t_ttyname.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'contrib/netbsd-tests') diff --git a/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c b/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c index bb9d264..0c10c24 100644 --- a/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c +++ b/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c @@ -107,9 +107,6 @@ ATF_TC_BODY(ttyname_r_err, tc) ATF_REQUIRE(rv == ERANGE); } -#ifdef __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); -- cgit v1.1