diff options
author | rpj <rpj> | 2004-11-03 01:08:41 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-11-03 01:08:41 +0000 |
commit | ec8290acdaea21b16d98f1ef5d4ae8a28ab2109a (patch) | |
tree | 0bd3750ec1cc12594b6cfe69473e393da6ec101b /tests/self2.c | |
parent | cccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff) |
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'tests/self2.c')
-rw-r--r-- | tests/self2.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/self2.c b/tests/self2.c index f8a68c9..93be0c7 100644 --- a/tests/self2.c +++ b/tests/self2.c @@ -64,14 +64,9 @@ main() assert(pthread_create(&t, NULL, entry, NULL) == 0); - Sleep(2000); + Sleep(100); - /* - * Not much more we can do here but bytewise compare t with - * what pthread_self returned. - */ - assert(t == me); - assert(memcmp((const void *) t, (const void *) me, sizeof t) == 0); + assert(pthread_equal(t, me) != 0); /* Success. */ return 0; |