From 698c2e504a4382036b412e1b2798ca83432bbbab Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 25 Mar 2014 08:06:16 +0100 Subject: tests/psxtests: Use --- testsuites/psxtests/psxautoinit01/init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psxautoinit01/init.c') diff --git a/testsuites/psxtests/psxautoinit01/init.c b/testsuites/psxtests/psxautoinit01/init.c index f557dbfa14..fb70a1e63e 100644 --- a/testsuites/psxtests/psxautoinit01/init.c +++ b/testsuites/psxtests/psxautoinit01/init.c @@ -15,6 +15,8 @@ #include #include +const char rtems_test_name[] = "PSXAUTOINIT 1"; + /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); @@ -27,7 +29,7 @@ void *POSIX_Init( pthread_mutex_t mutex2; int prioceiling; - puts( "\n\n*** POSIX TEST -- AUTOMATIC INITIALIZAITON 01 ***" ); + TEST_BEGIN(); /* path using mutex get with interrupts disabled */ mutex1 = PTHREAD_MUTEX_INITIALIZER; @@ -63,7 +65,7 @@ void *POSIX_Init( sc = pthread_mutex_destroy( &mutex1 ); fatal_posix_service_status( sc, 0, "mutex destroy OK" ); - puts( "*** END OF POSIX TEST AUTOMATIC INITIALIZATION 01 ***" ); + TEST_END(); rtems_test_exit( 0 ); return NULL; /* just so the compiler thinks we returned something */ @@ -72,6 +74,8 @@ void *POSIX_Init( #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_POSIX_THREADS 1 #define CONFIGURE_MAXIMUM_POSIX_MUTEXES 1 -- cgit v1.2.3