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

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