svn commit: r313375 - projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib

Ngie Cooper ngie at FreeBSD.org
Tue Feb 7 02:57:13 UTC 2017


Author: ngie
Date: Tue Feb  7 02:57:11 2017
New Revision: 313375
URL: https://svnweb.freebsd.org/changeset/base/313375

Log:
  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

Modified:
  projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c

Modified: projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c
==============================================================================
--- projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c	Tue Feb  7 02:32:49 2017	(r313374)
+++ projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c	Tue Feb  7 02:57:11 2017	(r313375)
@@ -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);


More information about the svn-src-projects mailing list