Skip to content

Commit

Permalink
Fix case conformance/interfaces/pthread_attr_setdetachstate/2-1.c
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
  • Loading branch information
dmsck committed Sep 6, 2015
1 parent bae9059 commit 9b60ef0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions conformance/interfaces/pthread_attr_setdetachstate/2-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,15 @@ int main()
* test fails as well. */
ret_val=pthread_join(new_th, NULL);

if(ret_val != EINVAL
#if __APPLE__
&& ret_val != ESRCH
#endif
)
if(ret_val != EINVAL && ret_val != ESRCH)
{
printf("Test FAILED (1)\n");
return PTS_FAIL;
}

ret_val=pthread_detach(new_th);

if(ret_val != EINVAL
#if __APPLE__
&& ret_val != ESRCH
#endif
)
if(ret_val != EINVAL && ret_val != ESRCH)
{
printf("Test FAILED (2)\n");
return PTS_FAIL;
Expand Down

0 comments on commit 9b60ef0

Please sign in to comment.