diff options
Diffstat (limited to 'tests/tsd1.c')
-rw-r--r-- | tests/tsd1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tsd1.c b/tests/tsd1.c index 4d89165..c28e4c5 100644 --- a/tests/tsd1.c +++ b/tests/tsd1.c @@ -113,6 +113,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); } |