diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-11.c | 4 | ||||
-rw-r--r-- | tests/test-6.c | 2 | ||||
-rw-r--r-- | tests/test-7.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-11.c b/tests/test-11.c index de779a4..f5a5aa0 100644 --- a/tests/test-11.c +++ b/tests/test-11.c @@ -109,11 +109,11 @@ main (int argc, char **argv) /* Read lock it. */ err = pthread_rwlock_tryrdlock (&lock); assert (err == 0); - + /* Try to write lock it. It should fail with EBUSY. */ err = pthread_rwlock_trywrlock (&lock); assert (err == EBUSY); - + /* Drop the read lock. */ err = pthread_rwlock_unlock (&lock); assert (err == 0); diff --git a/tests/test-6.c b/tests/test-6.c index edf2919..205c7a4 100644 --- a/tests/test-6.c +++ b/tests/test-6.c @@ -50,7 +50,7 @@ main (int argc, char **argv) error (1, err, "pthread_barrier_init"); for (j = 0; j < WAITS; j ++) - { + { for (i = 0; i < THREADS; i ++) { diff --git a/tests/test-7.c b/tests/test-7.c index 22fb1ca..be724ce 100644 --- a/tests/test-7.c +++ b/tests/test-7.c @@ -23,7 +23,7 @@ thr (void *arg) assert (pthread_getspecific (key[i]) == NULL); printf ("pthread_setspecific(%d, %d).\n", key[i], pthread_self ()); err = pthread_setspecific (key[i], (void *) pthread_self ()); - printf ("pthread_setspecific(%d, %d) => %d.\n", key[i], pthread_self (), err); + printf ("pthread_setspecific(%d, %d) => %d.\n", key[i], pthread_self (), err); assert_perror (err); } |