From 698c2e504a4382036b412e1b2798ca83432bbbab Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 25 Mar 2014 08:06:16 +0100 Subject: tests/psxtests: Use --- testsuites/psxtests/psxtimer02/psxtimer.c | 6 ++++-- testsuites/psxtests/psxtimer02/system.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psxtimer02') 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 facilities */ #include /* 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 -- cgit v1.2.3