From 9391f6d6637c752046cdfd89ae2eeea147496e44 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 Mar 2014 16:31:43 +0100 Subject: tests/samples: Use --- testsuites/samples/hello/init.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'testsuites/samples/hello/init.c') diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c index 8a44a88991..3949c8db06 100644 --- a/testsuites/samples/hello/init.c +++ b/testsuites/samples/hello/init.c @@ -11,6 +11,8 @@ #include "config.h" #endif +#include + #include /* for device driver prototypes */ #include @@ -19,13 +21,15 @@ /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); +const char rtems_test_name[] = "HELLO WORLD"; + rtems_task Init( rtems_task_argument ignored ) { - printf( "\n\n*** HELLO WORLD TEST ***\n" ); + rtems_test_begin(); printf( "Hello World\n" ); - printf( "*** END OF HELLO WORLD TEST ***\n" ); + rtems_test_end(); exit( 0 ); } @@ -39,5 +43,7 @@ rtems_task Init( #define CONFIGURE_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_INIT #include -- cgit v1.2.3