summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/hello/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/samples/hello/init.c')
-rw-r--r--testsuites/samples/hello/init.c10
1 files changed, 8 insertions, 2 deletions
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 <rtems/test.h>
+
#include <bsp.h> /* for device driver prototypes */
#include <stdio.h>
@@ -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 <rtems/confdefs.h>