From 7395b1431d5e2160682de273b46252c747ccbf36 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 8 May 2005 16:52:50 +0000 Subject: '' --- tests/tsd1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/tsd1.c') diff --git a/tests/tsd1.c b/tests/tsd1.c index 4d89165..c28e4c5 100644 --- a/tests/tsd1.c +++ b/tests/tsd1.c @@ -112,6 +112,8 @@ setkey(void * arg) assert(pthread_getspecific(key) == NULL); + assert(pthread_setspecific(key, arg) == 0); + assert(pthread_setspecific(key, arg) == 0); assert(pthread_setspecific(key, arg) == 0); assert(pthread_getspecific(key) == arg); @@ -144,7 +146,7 @@ main() for (i = 1; i < NUM_THREADS/2; i++) { - accesscount[i] = thread_set[i] = thread_destroyed[i] = 0; + accesscount[i] = thread_set[i] = thread_destroyed[i] = 0; assert(pthread_create(&thread[i], NULL, mythread, (void *)&accesscount[i]) == 0); } -- cgit v1.2.3