summaryrefslogtreecommitdiff
path: root/tests/tsd1.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-08 16:52:50 +0000
committerrpj <rpj>2005-05-08 16:52:50 +0000
commit7395b1431d5e2160682de273b46252c747ccbf36 (patch)
treebcff10e33282212ae087bb5074bc6025fc1313a3 /tests/tsd1.c
parent78f83cfa240ec14874b22c7302ff8d306c130aaf (diff)
''
Diffstat (limited to 'tests/tsd1.c')
-rw-r--r--tests/tsd1.c4
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);
}