diff options
Diffstat (limited to 'testsuites/samples/ticker')
-rw-r--r-- | testsuites/samples/ticker/init.c | 4 | ||||
-rw-r--r-- | testsuites/samples/ticker/system.h | 3 | ||||
-rw-r--r-- | testsuites/samples/ticker/tasks.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/samples/ticker/init.c b/testsuites/samples/ticker/init.c index d9366f8fa0..3df984c80c 100644 --- a/testsuites/samples/ticker/init.c +++ b/testsuites/samples/ticker/init.c @@ -14,6 +14,8 @@ #define CONFIGURE_INIT #include "system.h" +const char rtems_test_name[] = "CLOCK TICK"; + /* * Keep the names and IDs in global variables so another task can use them. */ @@ -28,7 +30,7 @@ rtems_task Init( rtems_status_code status; rtems_time_of_day time; - puts( "\n\n*** CLOCK TICK TEST ***" ); + TEST_BEGIN(); time.year = 1988; time.month = 12; diff --git a/testsuites/samples/ticker/system.h b/testsuites/samples/ticker/system.h index f5ac4d8ea6..98add53e8d 100644 --- a/testsuites/samples/ticker/system.h +++ b/testsuites/samples/ticker/system.h @@ -12,6 +12,7 @@ */ #include <rtems.h> +#include <rtems/test.h> #include <inttypes.h> #include "tmacros.h" @@ -48,6 +49,8 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */ #define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE) +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #include <rtems/confdefs.h> /* diff --git a/testsuites/samples/ticker/tasks.c b/testsuites/samples/ticker/tasks.c index bdff3a3e95..146a80b1a2 100644 --- a/testsuites/samples/ticker/tasks.c +++ b/testsuites/samples/ticker/tasks.c @@ -37,7 +37,7 @@ rtems_task Test_task( for ( ; ; ) { status = rtems_clock_get_tod( &time ); if ( time.second >= 35 ) { - puts( "*** END OF CLOCK TICK TEST ***" ); + TEST_END(); rtems_test_exit( 0 ); } put_name( Task_name[ task_index ], FALSE ); |