summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/hello/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-10 16:31:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commit9391f6d6637c752046cdfd89ae2eeea147496e44 (patch)
treefe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/hello/init.c
parentsapi: Add <rtems/test.h> (diff)
downloadrtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2
tests/samples: Use <rtems/test.h>
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>