From b89e4cd89cc6c3747da52a7a8f3b0514fe33359e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 23 Aug 2010 08:32:52 +0000 Subject: 2010-08-23 Sebastian Huber * gxx01/gxx_wrappers.h, gxx02/.cvsignore, gxx02/Makefile.am, gxx02/gxx02.doc, gxx02/gxx02.scn, gxx02/init.c: Removed files. * Makefile.am, configure.ac: Reflect changes above. * gxx01/init.c: Removed fatal error test case. --- testsuites/libtests/gxx01/gxx_wrappers.h | 58 -------------------------------- testsuites/libtests/gxx01/init.c | 20 ++--------- 2 files changed, 3 insertions(+), 75 deletions(-) delete mode 100755 testsuites/libtests/gxx01/gxx_wrappers.h (limited to 'testsuites/libtests/gxx01') diff --git a/testsuites/libtests/gxx01/gxx_wrappers.h b/testsuites/libtests/gxx01/gxx_wrappers.h deleted file mode 100755 index 7db7715c41..0000000000 --- a/testsuites/libtests/gxx01/gxx_wrappers.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * RTEMS threads compatibily routines for libgcc2. - * - * $Id$ - */ - -#ifndef __GCC_WRAPPERS_h -#define __GCC_WRAPPERS_h - -/* - * These typedefs should match with the ones defined in the file - * gcc/gthr-rtems.h in the gcc distribution. - * FIXME: T.S, 2007/01/31: -> gcc/gthr-rtems.h still declares - * void * __gthread_key_t; - */ -typedef struct __gthread_key_ { - void *val; /* this is switched with the task */ - void (*dtor)(void*); /* this remains in place for all tasks */ -} __gthread_key, *__gthread_key_t; - -typedef int __gthread_once_t; -typedef void *__gthread_mutex_t; -typedef void *__gthread_recursive_mutex_t; - -int rtems_gxx_once(__gthread_once_t *once, void (*func) (void)); - -int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)); - -int rtems_gxx_key_dtor (__gthread_key_t key, void *ptr); - -int rtems_gxx_key_delete (__gthread_key_t key); - -void *rtems_gxx_getspecific(__gthread_key_t key); - -int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr); - -/* - * MUTEX support - */ -void rtems_gxx_mutex_init (__gthread_mutex_t *mutex); - -int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex); - -int rtems_gxx_mutex_destroy (__gthread_mutex_t *mutex); - -int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex); - -int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex); - -void rtems_gxx_recursive_mutex_init(__gthread_recursive_mutex_t *mutex); - -int rtems_gxx_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex); - -int rtems_gxx_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex); - -int rtems_gxx_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex); - -#endif diff --git a/testsuites/libtests/gxx01/init.c b/testsuites/libtests/gxx01/init.c index 3ab36b2338..fd8245bb4c 100644 --- a/testsuites/libtests/gxx01/init.c +++ b/testsuites/libtests/gxx01/init.c @@ -11,7 +11,7 @@ #include #include "test_support.h" -#include "gxx_wrappers.h" +#include void test_recursive_mutex(void) { @@ -164,20 +164,6 @@ void test_key(void) rtems_test_assert( key == NULL ); } -void test_out_of_mutexes(void) -{ - __gthread_mutex_t mutex; - - puts( "rtems_gxx_mutex_init() until exhausted and panic" ); - puts( "rtems_gxx_mutex_init() panic AFTER printing EOF message" ); - puts( "*** END OF TEST GXX 01 ***" ); - - while (1) { - rtems_gxx_mutex_init(&mutex); - rtems_test_assert( mutex != 0 ); - } -} - rtems_task Init( rtems_task_argument argument ) @@ -196,9 +182,9 @@ rtems_task Init( test_key(); puts( "" ); - test_out_of_mutexes(); + puts( "*** END OF TEST GXX 01 ***" ); - /* does not return */ + rtems_test_exit( 0 ); } /* configuration information */ -- cgit v1.2.3