summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/hello/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-06 07:56:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-06 09:06:20 +0100
commit7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e (patch)
tree51fa24406cfa7db08a25dc1d7588f4854c7ad3f9 /testsuites/samples/hello/init.c
parentfsjffs2gc01: Fix sporadic test failures (diff)
downloadrtems-7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e.tar.bz2
tests: Use <tmacros.h> in all tests
Update #3170. Update #3199.
Diffstat (limited to 'testsuites/samples/hello/init.c')
-rw-r--r--testsuites/samples/hello/init.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c
index 3f3dcd8d58..34ded37c55 100644
--- a/testsuites/samples/hello/init.c
+++ b/testsuites/samples/hello/init.c
@@ -11,28 +11,20 @@
#include "config.h"
#endif
-#include <rtems/printer.h>
-#include <rtems/test.h>
-
-#include <bsp.h> /* for device driver prototypes */
-
-#include <stdio.h>
-#include <stdlib.h>
-
-/* forward declarations to avoid warnings */
-rtems_task Init(rtems_task_argument argument);
+#include <rtems.h>
+#include <tmacros.h>
const char rtems_test_name[] = "HELLO WORLD";
-rtems_task Init(
+static rtems_task Init(
rtems_task_argument ignored
)
{
rtems_print_printer_fprintf_putc(&rtems_test_printer);
- rtems_test_begin();
+ TEST_BEGIN();
printf( "Hello World\n" );
- rtems_test_end();
- exit( 0 );
+ TEST_END();
+ rtems_test_exit( 0 );
}