diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-05 14:53:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-05 16:01:04 +0200 |
commit | 5e2a66d5c9abd46fcfebe993ef130e87e05890e3 (patch) | |
tree | bd0e0edcfdc098ed1ab5adfd9a83368d70dafd8d /testsuites/psxtests/psxhdrs/pthread33.c | |
parent | posix: Add comment (diff) | |
download | rtems-5e2a66d5c9abd46fcfebe993ef130e87e05890e3.tar.bz2 |
psxtests/psxhdrs: Fix cleanup push/pop test
The pthread_cleanup_push() and pthread_cleanup_pop() statements must
appear as a pair in the same lexical scope as required by POSIX.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxhdrs/pthread33.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread33.c b/testsuites/psxtests/psxhdrs/pthread33.c deleted file mode 100644 index 5206aec128..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread33.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-2009. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cleanup_pop" -#endif - -void test( void ); - -void test( void ) -{ - pthread_cleanup_pop( 1 ); -} |