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/psxbarrier01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxbarrier01/main.c | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psxbarrier01/test.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxbarrier01/main.c b/testsuites/psxtests/psxbarrier01/main.c index f714892c5b..6475016730 100644 --- a/testsuites/psxtests/psxbarrier01/main.c +++ b/testsuites/psxtests/psxbarrier01/main.c @@ -13,6 +13,7 @@ #include "config.h" #endif +#include <rtems/test.h> #include <bsp.h> #include <pmacros.h> @@ -35,10 +36,14 @@ rtems_task Init( #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_MAXIMUM_TASKS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_POSIX_THREADS 10 #define CONFIGURE_MAXIMUM_POSIX_BARRIERS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2) diff --git a/testsuites/psxtests/psxbarrier01/test.c b/testsuites/psxtests/psxbarrier01/test.c index 06a1df40d3..bcbb87a467 100644 --- a/testsuites/psxtests/psxbarrier01/test.c +++ b/testsuites/psxtests/psxbarrier01/test.c @@ -22,6 +22,8 @@ #include "tmacros.h" +const char rtems_test_name[] = "PSXBARRIER 1"; + #define NUMBER_THREADS 2 pthread_t ThreadIds[NUMBER_THREADS]; pthread_barrier_t Barrier; @@ -62,7 +64,7 @@ int main( int p; int i; - puts( "\n\n*** POSIX BARRIER TEST 01 ***" ); + TEST_BEGIN(); /*************** NULL POINTER CHECKS *****************/ puts( "pthread_barrierattr_init( NULL ) -- EINVAL" ); @@ -235,6 +237,6 @@ int main( } /*************** END OF TEST *****************/ - puts( "*** END OF POSIX BARRIER TEST 01 ***" ); + TEST_END(); exit(0); } |