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/psxonce01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxonce01')
-rw-r--r-- | testsuites/psxtests/psxonce01/init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxonce01/init.c b/testsuites/psxtests/psxonce01/init.c index cd3eb2ad29..1c90769d38 100644 --- a/testsuites/psxtests/psxonce01/init.c +++ b/testsuites/psxtests/psxonce01/init.c @@ -14,6 +14,8 @@ #define CONFIGURE_INIT #include "system.h" +const char rtems_test_name[] = "PSXONCE 1"; + static pthread_once_t nesting_once = PTHREAD_ONCE_INIT; static void Test_init_routine_nesting( void ) @@ -38,7 +40,7 @@ rtems_task Init(rtems_task_argument argument) int status; pthread_once_t once = PTHREAD_ONCE_INIT; - puts( "\n\n*** TEST POSIX ONCE 01 ***" ); + TEST_BEGIN(); puts( "Init: pthread_once - EINVAL (NULL once_control)" ); status = pthread_once( NULL, Test_init_routine ); @@ -64,6 +66,6 @@ rtems_task Init(rtems_task_argument argument) status = pthread_once( &nesting_once, Test_init_routine_nesting ); rtems_test_assert( !status ); - puts( "*** END OF TEST POSIX ONCE 01 ***" ); + TEST_END(); rtems_test_exit( 0 ); } |