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/psx02 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psx02')
-rw-r--r-- | testsuites/psxtests/psx02/init.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psx02/system.h | 2 | ||||
-rw-r--r-- | testsuites/psxtests/psx02/task.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/psxtests/psx02/init.c b/testsuites/psxtests/psx02/init.c index ca4d41b2c2..0d2ab06c7e 100644 --- a/testsuites/psxtests/psx02/init.c +++ b/testsuites/psxtests/psx02/init.c @@ -15,6 +15,8 @@ #include "system.h" #include <signal.h> +const char rtems_test_name[] = "PSX 2"; + volatile int Signal_occurred; volatile int Signal_count; void Signal_handler( int signo ); @@ -44,7 +46,7 @@ void *POSIX_Init( sigset_t mask; sigset_t pending_set; - puts( "\n\n*** POSIX TEST 2 ***" ); + TEST_BEGIN(); /* set the time of day, and print our buffer in multiple ways */ @@ -141,7 +143,7 @@ void *POSIX_Init( /* exit this thread */ - puts( "*** END OF POSIX TEST 2 ***" ); + TEST_END(); rtems_test_exit( 0 ); return NULL; /* just so the compiler thinks we returned something */ diff --git a/testsuites/psxtests/psx02/system.h b/testsuites/psxtests/psx02/system.h index 783055840d..cf0242d52d 100644 --- a/testsuites/psxtests/psx02/system.h +++ b/testsuites/psxtests/psx02/system.h @@ -29,6 +29,8 @@ void *Task_1_through_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 2 #define CONFIGURE_POSIX_INIT_THREAD_TABLE diff --git a/testsuites/psxtests/psx02/task.c b/testsuites/psxtests/psx02/task.c index 1170cc819f..e62c338478 100644 --- a/testsuites/psxtests/psx02/task.c +++ b/testsuites/psxtests/psx02/task.c @@ -39,7 +39,7 @@ void *Task_1_through_3( seconds = sleep( 1 ); rtems_test_assert( !seconds ); } - puts( "*** END OF POSIX TEST 2 ***" ); + TEST_END(); rtems_test_exit( 0 ); return NULL; /* just so the compiler thinks we returned something */ |