Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSD

PR: 191906
In collaboration with: pho
This commit is contained in:
Enji Cooper 2014-11-16 05:08:19 +00:00
parent 190e1b1c9b
commit ff9d081d78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274573

View File

@ -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.