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/psx10 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psx10')
-rw-r--r-- | testsuites/psxtests/psx10/init.c | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psx10/system.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/testsuites/psxtests/psx10/init.c b/testsuites/psxtests/psx10/init.c index daf14135f2..a37e14efba 100644 --- a/testsuites/psxtests/psx10/init.c +++ b/testsuites/psxtests/psx10/init.c @@ -15,6 +15,7 @@ #include "system.h" #include <sched.h> +const char rtems_test_name[] = "PSX 10"; void *POSIX_Init( void *argument @@ -27,7 +28,7 @@ void *POSIX_Init( pthread_cond_t cond; struct timespec timeout; - puts( "\n\n*** POSIX TEST 10 ***" ); + TEST_BEGIN(); puts( "Init: pthread_condattr_init" ); status = pthread_condattr_init( &attr ); @@ -311,7 +312,7 @@ void *POSIX_Init( puts( "Init: sleep - switch to Task_3" ); sleep( 1 ); - puts( "*** END OF POSIX TEST 10 ***" ); + TEST_END(); rtems_test_exit( 0 ); return NULL; /* just so the compiler thinks we returned something */ diff --git a/testsuites/psxtests/psx10/system.h b/testsuites/psxtests/psx10/system.h index bca5982085..573a065c26 100644 --- a/testsuites/psxtests/psx10/system.h +++ b/testsuites/psxtests/psx10/system.h @@ -38,6 +38,8 @@ void *Task_3( #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_POSIX_THREADS 4 #define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 1 #define CONFIGURE_MAXIMUM_POSIX_MUTEXES 2 |