diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-11-06 13:25:18 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-11-06 13:25:18 +0100 |
commit | e4de8df465f6c984fc1ac337167499cca7700f63 (patch) | |
tree | c55601fc2e39971abb3d63aca80140513b242dc6 /libpthread/tests/test-7.c | |
parent | e5642a3d703a9441efc68c8e05cd5534f867275f (diff) | |
parent | a1a10da44a300bc501582db93280f257b2f87386 (diff) |
Merge branch 'libpthread' into libpthread-moved
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); |