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/libtests/math | |
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/libtests/math')
-rw-r--r-- | testsuites/libtests/math/Makefile.am | 2 | ||||
-rw-r--r-- | testsuites/libtests/math/init.c | 15 |
2 files changed, 6 insertions, 11 deletions
diff --git a/testsuites/libtests/math/Makefile.am b/testsuites/libtests/math/Makefile.am index 835bd931a5..ec5c327d24 100644 --- a/testsuites/libtests/math/Makefile.am +++ b/testsuites/libtests/math/Makefile.am @@ -7,6 +7,8 @@ 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 + math_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math math_LDADD = -lm diff --git a/testsuites/libtests/math/init.c b/testsuites/libtests/math/init.c index f8c9649e8e..824644f03d 100644 --- a/testsuites/libtests/math/init.c +++ b/testsuites/libtests/math/init.c @@ -22,23 +22,16 @@ #include "config.h" #endif -/* - * @fixme This test should use the test macros but the include paths are - * are wrong in the build system. - */ -#if __rtems__ -#include <bsp.h> /* for device driver prototypes */ -#include <rtems/test.h> - -const char rtems_test_name[] = "MATH"; -#endif - #include <stdio.h> #include <stdlib.h> extern void domath(void); #if __rtems__ +#include <tmacros.h> + +const char rtems_test_name[] = "MATH"; + /* NOTICE: the clock driver is explicitly disabled */ #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER |