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/psxalarm01 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxalarm01')
-rw-r--r-- | testsuites/psxtests/psxalarm01/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxalarm01/init.c b/testsuites/psxtests/psxalarm01/init.c index 1eb3e4372f..b6bf1d7cb2 100644 --- a/testsuites/psxtests/psxalarm01/init.c +++ b/testsuites/psxtests/psxalarm01/init.c @@ -16,6 +16,8 @@ #include <signal.h> #include <errno.h> +const char rtems_test_name[] = "PSXALARM 1"; + /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); @@ -70,7 +72,7 @@ void *POSIX_Init( struct sigaction act; sigset_t mask; - puts( "\n\n*** POSIX ALARM TEST 01 ***" ); + TEST_BEGIN(); /* install a signal handler for SIGALRM and unblock it */ @@ -107,7 +109,7 @@ void *POSIX_Init( printf( "Init: %d seconds left on previous alarm\n", remaining ); rtems_test_assert( remaining == 0 ); - puts( "*** END OF POSIX ALARM TEST 01***" ); + TEST_END(); rtems_test_exit( 0 ); return NULL; /* just so the compiler thinks we returned something */ @@ -116,6 +118,8 @@ void *POSIX_Init( #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 1 #define CONFIGURE_POSIX_INIT_THREAD_TABLE |