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/valid2.c | |
parent | cccaf0c2c82e78a72d69a4a50c872f308bed2f65 (diff) |
Mutex, semaphore, thread ID, test suite changes - see ChangeLogs
Diffstat (limited to 'tests/valid2.c')
-rw-r--r-- | tests/valid2.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/valid2.c b/tests/valid2.c index ad01b55..cef1020 100644 --- a/tests/valid2.c +++ b/tests/valid2.c @@ -76,15 +76,9 @@ int main() { - pthread_t ptrToNull = NULL; - /* This should be bigger than a pthread handle. */ - char corruptDummy[1000]; + pthread_t NullThread = PTW32_THREAD_NULL_ID; - memset(corruptDummy, 0x5A, sizeof(corruptDummy)); - - assert(pthread_kill(NULL, 0) == ESRCH); - assert(pthread_kill(ptrToNull, 0) == ESRCH); - assert(pthread_kill((pthread_t) corruptDummy, 0) == ESRCH); + assert(pthread_kill(NullThread, 0) == ESRCH); return 0; } |