summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libpthread
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-11-16 05:08:19 +0000
committerngie <ngie@FreeBSD.org>2014-11-16 05:08:19 +0000
commitc480c4f5e2a1af01829d75d7349316fc2b26b08c (patch)
tree559973a66066f342d2a7775ce2f77eed92e22939 /contrib/netbsd-tests/lib/libpthread
parentd00b8c17f9bccca46f2a81396139f839e71516e1 (diff)
downloadFreeBSD-src-c480c4f5e2a1af01829d75d7349316fc2b26b08c.zip
FreeBSD-src-c480c4f5e2a1af01829d75d7349316fc2b26b08c.tar.gz
Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSD
PR: 191906 In collaboration with: pho
Diffstat (limited to 'contrib/netbsd-tests/lib/libpthread')
-rw-r--r--contrib/netbsd-tests/lib/libpthread/t_detach.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libpthread/t_detach.c b/contrib/netbsd-tests/lib/libpthread/t_detach.c
index 21db871..aeed671 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.
OpenPOWER on IntegriCloud