From ff9d081d7883d419ca634b0560c2accc3fad2143 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 16 Nov 2014 05:08:19 +0000 Subject: [PATCH] Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSD PR: 191906 In collaboration with: pho --- contrib/netbsd-tests/lib/libpthread/t_detach.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/netbsd-tests/lib/libpthread/t_detach.c b/contrib/netbsd-tests/lib/libpthread/t_detach.c index 21db871a70da..aeed6712bec9 100644 --- a/contrib/netbsd-tests/lib/libpthread/t_detach.c +++ b/contrib/netbsd-tests/lib/libpthread/t_detach.c @@ -75,6 +75,10 @@ ATF_TC_BODY(pthread_detach, tc) rv = pthread_join(t, NULL); ATF_REQUIRE(rv == EINVAL); +#if defined(__FreeBSD__) + atf_tc_expect_fail("PR # 191906: fails with EINVAL, not ESRCH"); +#endif + /* * As usual, ESRCH should follow if * we try to detach an invalid thread.