summaryrefslogtreecommitdiff
path: root/tests/test-7.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-7.c')
-rw-r--r--tests/test-7.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-7.c b/tests/test-7.c
index 8159be3..22fb1ca 100644
--- a/tests/test-7.c
+++ b/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);