diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
commit | 698c2e504a4382036b412e1b2798ca83432bbbab (patch) | |
tree | 114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxcleanup01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxcleanup01')
-rw-r--r-- | testsuites/psxtests/psxcleanup01/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxcleanup01/init.c b/testsuites/psxtests/psxcleanup01/init.c index 427bc7fb34..502f90bc6b 100644 --- a/testsuites/psxtests/psxcleanup01/init.c +++ b/testsuites/psxtests/psxcleanup01/init.c @@ -15,6 +15,8 @@ #include "pmacros.h" #include <pthread.h> /* thread facilities */ +const char rtems_test_name[] = "PSXCLEANUP 1"; + /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); void cleaner(void *arg); @@ -29,7 +31,7 @@ void *POSIX_Init( void *argument ) { - puts( "\n\n*** POSIX CLEANUP TEST 01 ***" ); + TEST_BEGIN(); puts( "Init - pthread_cleanup_push - a routine we will not execute" ); pthread_cleanup_push(cleaner, NULL); @@ -37,7 +39,7 @@ void *POSIX_Init( puts( "Init - pthread_cleanup_pop - do not execute" ); pthread_cleanup_pop(0); - puts( "*** END OF POSIX CLEANUP TEST 01 ***\n" ); + TEST_END(); rtems_test_exit(0); } @@ -49,6 +51,8 @@ void *POSIX_Init( #define CONFIGURE_POSIX_INIT_THREAD_TABLE +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_POSIX_THREADS 1 #define CONFIGURE_INIT |