diff options
Diffstat (limited to 'libpthread/tests/test-7.c')
-rw-r--r-- | libpthread/tests/test-7.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpthread/tests/test-7.c b/libpthread/tests/test-7.c index 8159be34..22fb1caa 100644 --- a/libpthread/tests/test-7.c +++ b/libpthread/tests/test-7.c @@ -42,6 +42,9 @@ main (int argc, char **argv) assert ((pthread_t) val == pthread_self ()); } + assert (pthread_getspecific ((pthread_key_t) 0) == NULL); + assert (pthread_setspecific ((pthread_key_t) 0, (void *) 0x1) == EINVAL); + for (i = 0; i < KEYS; i ++) err = pthread_key_create (&key[i], des); |