Fix lib/libthr/tests/detach_test
authorngie <ngie@FreeBSD.org>
Sat, 17 Jan 2015 00:58:24 +0000 (00:58 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 17 Jan 2015 00:58:24 +0000 (00:58 +0000)
commitc26ac3fe45e853d5e2b5a20ef72c217c2fbb2f53
tree699d29b228bc7a024cc623d9fe6f362d512b9b55
parentdddf8376c3d7ac5676dd84d020f202f61b4a12a0
Fix lib/libthr/tests/detach_test

- Eliminate race with liberal use of sleep(3) [1]
- Fix NetBSD-specific implementation way of testing result from pthread_cancel
  by testing with `td` instead of `NULL` [2]

PR: 196738 [1]
PR: 191906 [2]

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
contrib/netbsd-tests/lib/libpthread/t_detach.c