diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 07:56:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 09:06:20 +0100 |
commit | 7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e (patch) | |
tree | 51fa24406cfa7db08a25dc1d7588f4854c7ad3f9 /testsuites/samples/hello | |
parent | fsjffs2gc01: Fix sporadic test failures (diff) | |
download | rtems-7b00c2fac57740963d3c4d8bf1cf5eab3a31f22e.tar.bz2 |
tests: Use <tmacros.h> in all tests
Update #3170.
Update #3199.
Diffstat (limited to 'testsuites/samples/hello')
-rw-r--r-- | testsuites/samples/hello/Makefile.am | 1 | ||||
-rw-r--r-- | testsuites/samples/hello/init.c | 20 |
2 files changed, 7 insertions, 14 deletions
diff --git a/testsuites/samples/hello/Makefile.am b/testsuites/samples/hello/Makefile.am index 234a27e3ba..a3e571b488 100644 --- a/testsuites/samples/hello/Makefile.am +++ b/testsuites/samples/hello/Makefile.am @@ -9,6 +9,7 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am +AM_CPPFLAGS += -I$(top_srcdir)/../support/include LINK_OBJS = $(hello_OBJECTS) LINK_LIBS = $(hello_LDLIBS) 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 ); } |