diff options
author | ngie <ngie@FreeBSD.org> | 2014-11-16 05:08:19 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-11-16 05:08:19 +0000 |
commit | c480c4f5e2a1af01829d75d7349316fc2b26b08c (patch) | |
tree | 559973a66066f342d2a7775ce2f77eed92e22939 /contrib/netbsd-tests/lib/libpthread | |
parent | d00b8c17f9bccca46f2a81396139f839e71516e1 (diff) | |
download | FreeBSD-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.c | 4 |
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. |