From 78fc510a76e33ad4c5bf7a58322b591f0e2e9e49 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 28 Nov 2007 00:14:41 +0000 Subject: [PATCH] The behavior of pthread_getspecific() when called with an invalid key is undefined as per Open Group Base Specs. Commented out the code block. It doesn't do what the preceding comment suggests anyway. In fact the whole test doesn't quite do what the comment in the header promises. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23010 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../conformance/interfaces/pthread_key_create/2-1.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/2-1.c b/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/2-1.c index adad64c9b3..fca418f494 100644 --- a/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/2-1.c +++ b/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/2-1.c @@ -30,12 +30,12 @@ int main() void* rc; /* Verify that the value associated with "key" in a new thread is NULL */ - rc = pthread_getspecific(key); - if(rc != NULL) - { - printf("pthread_key_create_2-1 Test FAILED\n"); - return PTS_FAIL; - } +// rc = pthread_getspecific(key); +// if(rc != NULL) +// { +// printf("pthread_key_create_2-1 Test FAILED\n"); +// return PTS_FAIL; +// } if(pthread_key_create(&key, NULL) != 0) {