summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-02-01 22:50:33 +0000
committerjilles <jilles@FreeBSD.org>2015-02-01 22:50:33 +0000
commit6bc8b6eb4c7154f6740245cb0b45f9bc2e04945f (patch)
tree49d4b6577a32bf1e3072d98add9eb1f6af243043 /contrib/netbsd-tests
parent8adb86862b914637b98b57e7708b6d2171e108e1 (diff)
downloadFreeBSD-src-6bc8b6eb4c7154f6740245cb0b45f9bc2e04945f.zip
FreeBSD-src-6bc8b6eb4c7154f6740245cb0b45f9bc2e04945f.tar.gz
ttyname_r(): Return actual error, not always [ENOTTY].
Adjust the test that used to fail because of this bug. PR: 191936 MFC after: 1 week
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libc/gen/t_ttyname.c3
1 files changed, 0 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud