summaryrefslogtreecommitdiff
path: root/tests/cancel6d.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-11-03 01:08:41 +0000
committerrpj <rpj>2004-11-03 01:08:41 +0000
commitec8290acdaea21b16d98f1ef5d4ae8a28ab2109a (patch)
tree0bd3750ec1cc12594b6cfe69473e393da6ec101b /tests/cancel6d.c
parentcccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff)
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'tests/cancel6d.c')
-rw-r--r--tests/cancel6d.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/cancel6d.c b/tests/cancel6d.c
index 9a69adb..d0ad7ac 100644
--- a/tests/cancel6d.c
+++ b/tests/cancel6d.c
@@ -119,7 +119,7 @@ main()
int i;
pthread_t t[NUMTHREADS + 1];
- assert((t[0] = pthread_self()) != NULL);
+ assert((t[0] = pthread_self()).p != NULL);
for (i = 1; i <= NUMTHREADS; i++)
{
@@ -167,11 +167,6 @@ main()
int fail = 0;
int result = 0;
- /*
- * The thread does not contain any cancelation points, so
- * a return value of PTHREAD_CANCELED confirms that async
- * cancelation succeeded.
- */
assert(pthread_join(t[i], (void **) &result) == 0);
fail = (result != (int) PTHREAD_CANCELED);