Expect :hsearch_r_nonexistent to fail on FreeBSD

The docs and the behavior mismatch; as noted in the bug, the behavior
for hsearch_r matches Linux, whereas the docs seem to match NetBSD
requirements wise.

PR:	216872
This commit is contained in:
Enji Cooper 2017-02-07 02:57:11 +00:00
parent f2b9adff63
commit 7047ed6854
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313375

View File

@ -337,6 +337,9 @@ ATF_TC_BODY(hsearch_r_nonexistent, tc)
REQUIRE_ERRNO(hcreate_r(16, &t));
#ifdef __FreeBSD__
atf_tc_expect_fail("behavior doesn't match docs; see bug # 216872");
#endif
e.key = __UNCONST("A");
ATF_REQUIRE(hsearch_r(e, FIND, &ep, &t) == 1);
ATF_REQUIRE_EQ(ep, NULL);