diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-02 08:33:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-02 09:24:51 +0100 |
commit | 927a0a1f990c19a3e7295bb001896b3f3c75a77e (patch) | |
tree | b4c1cdb1a406b700a17b80e235613c9ced8c0cd9 /testsuites/psxtests | |
parent | pstmtests_plan.csv: Update to reflect psxtmcond 09 and 10 exit (diff) | |
download | rtems-927a0a1f990c19a3e7295bb001896b3f3c75a77e.tar.bz2 |
posix: Use cleanup contexts on the stack
Provide support for latest Newlib <pthread.h> change. The cleanup
contexts are stored on the thread stack. This is conformant with the
POSIX requirements for the pthread_cleanup_push() and
pthread_cleanup_pop() statement pair.
Passing an invalid pointer as the routine to pthread_cleanup_push() is
now a usage error and the behaviour is undefined.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/psxcleanup/psxcleanup.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxcleanup/psxcleanup.c b/testsuites/psxtests/psxcleanup/psxcleanup.c index 568e897a76..123e76692c 100644 --- a/testsuites/psxtests/psxcleanup/psxcleanup.c +++ b/testsuites/psxtests/psxcleanup/psxcleanup.c @@ -250,13 +250,6 @@ void *POSIX_Init( sleep(1); - /*************** ERROR CASES ***************/ - puts("Call pthread_cleanup_push with NULL handler"); - pthread_cleanup_push(NULL, NULL); - - puts("Call pthread_cleanup_pop with no push"); - pthread_cleanup_pop(1); - /*************** END OF TEST *****************/ puts( "*** END OF POSIX CLEANUP TEST ***\n" ); rtems_test_exit(0); |