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/psxcancel | |
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/psxcancel/init.c | 8 | ||||
-rw-r--r-- | testsuites/psxtests/psxcancel01/init.c | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c index 7644edff43..c8c96b556c 100644 --- a/testsuites/psxtests/psxcancel/init.c +++ b/testsuites/psxtests/psxcancel/init.c @@ -22,6 +22,8 @@ #include <pmacros.h> #endif +const char rtems_test_name[] = "PSXCANCEL"; + /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); void countTask_cancel_handler(void *ignored); @@ -80,7 +82,7 @@ void *countTaskAsync(void *ignored) int sc; int old; - puts( "\n\n*** POSIX CANCEL TEST ***" ); + TEST_BEGIN(); /* generate some error conditions */ puts( "Init - pthread_setcancelstate - NULL oldstate - EINVAL" ); @@ -130,7 +132,7 @@ void *countTaskAsync(void *ignored) } - puts( "*** END OF POSIX CANCEL TEST ***" ); + TEST_END(); #if defined(__rtems__) rtems_test_exit(EXIT_SUCCESS); @@ -146,6 +148,8 @@ void *countTaskAsync(void *ignored) #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 2 #define CONFIGURE_POSIX_INIT_THREAD_TABLE diff --git a/testsuites/psxtests/psxcancel01/init.c b/testsuites/psxtests/psxcancel01/init.c index 7d86092b4b..fce188ed39 100644 --- a/testsuites/psxtests/psxcancel01/init.c +++ b/testsuites/psxtests/psxcancel01/init.c @@ -14,6 +14,8 @@ #include <pmacros.h> #include <errno.h> +const char rtems_test_name[] = "PSXCANCEL 1"; + /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); rtems_timer_service_routine Cancel_duringISR_TSR( @@ -109,7 +111,7 @@ void *POSIX_Init( { rtems_status_code status; - puts( "\n\n*** POSIX TEST CANCEL 01 ***" ); + TEST_BEGIN(); status = rtems_timer_create( rtems_build_name( 'T', 'M', '1', ' ' ), @@ -121,7 +123,7 @@ void *POSIX_Init( doit( SetState_duringISR_TSR, "pthread_setcancelstate" ); doit( SetType_duringISR_TSR, "pthread_setcanceltype" ); - puts( "*** END OF POSIX TEST CANCEL 01 ***" ); + TEST_END(); rtems_test_exit(0); return NULL; /* just so the compiler thinks we returned something */ } @@ -133,6 +135,8 @@ void *POSIX_Init( #define CONFIGURE_MAXIMUM_TIMERS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_POSIX_THREADS 1 #define CONFIGURE_POSIX_INIT_THREAD_TABLE |