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/psxtimer02 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxtimer02')
-rw-r--r-- | testsuites/psxtests/psxtimer02/psxtimer.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxtimer02/system.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxtimer02/psxtimer.c b/testsuites/psxtests/psxtimer02/psxtimer.c index 910dedadb9..e4d6d7d332 100644 --- a/testsuites/psxtests/psxtimer02/psxtimer.c +++ b/testsuites/psxtests/psxtimer02/psxtimer.c @@ -32,6 +32,8 @@ #include <time.h> /* time facilities */ #include <stdio.h> /* console facilities */ +const char rtems_test_name[] = "PSXTIMER 2"; + void *POSIX_Init ( void *argument ) @@ -50,7 +52,7 @@ void *POSIX_Init ( event.sigev_notify = SIGEV_SIGNAL; event.sigev_signo = SIGUSR1; - puts( "\n\n*** POSIX Timers Test 02 ***" ); + TEST_BEGIN(); puts( "timer_create - bad clock id - EINVAL" ); status = timer_create( (timer_t) -1, &event, &timer ); @@ -125,6 +127,6 @@ void *POSIX_Init ( status = timer_delete( timer ); fatal_posix_service_status_errno( status, EINVAL, "bad id" ); - puts( "*** END OF POSIX Timers Test 02 ***" ); + TEST_END(); rtems_test_exit (0); } diff --git a/testsuites/psxtests/psxtimer02/system.h b/testsuites/psxtests/psxtimer02/system.h index 5673e3be9d..917922d3cc 100644 --- a/testsuites/psxtests/psxtimer02/system.h +++ b/testsuites/psxtests/psxtimer02/system.h @@ -26,6 +26,8 @@ void *POSIX_Init ( #define CONFIGURE_POSIX_INIT_THREAD_TABLE +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_MAXIMUM_POSIX_THREADS 1 #define CONFIGURE_MAXIMUM_POSIX_TIMERS 1 |