diff options
author | rpj <rpj> | 2005-05-08 16:52:50 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-08 16:52:50 +0000 |
commit | 7395b1431d5e2160682de273b46252c747ccbf36 (patch) | |
tree | bcff10e33282212ae087bb5074bc6025fc1313a3 /tests/tsd1.c | |
parent | 78f83cfa240ec14874b22c7302ff8d306c130aaf (diff) |
''
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); } |