Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2017 02:57:11 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r313375 - projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib
Message-ID:  <201702070257.v172vBek024042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702070257.v172vBek024042>