summaryrefslogtreecommitdiffstats
path: root/testsuites/automake
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-11-08 13:27:25 +1100
committerChris Johns <chrisj@rtems.org>2017-11-11 16:14:59 +1100
commite6df806a3f46b5488e5e383add9cda43e0059dbe (patch)
tree560dabf7fec58d1d33cfaf419842ddbd085d8c16 /testsuites/automake
parenttests: Use rtems_test_begin and rtems_test_end. (diff)
downloadrtems-e6df806a3f46b5488e5e383add9cda43e0059dbe.tar.bz2
tests: Use ld to map (wrap) printf, puts and putchar to tester functions.
- Remove the macro defines and the need for tmacro.h by remapping the symbols using ld's wrap option. - Remove FLUSH_OUTPUT, it was empty. - Move rtems_test_exit to libmisc/testsupport as a function. Update #3199.
Diffstat (limited to 'testsuites/automake')
-rw-r--r--testsuites/automake/compile.am5
-rw-r--r--testsuites/automake/local.am2
2 files changed, 5 insertions, 2 deletions
diff --git a/testsuites/automake/compile.am b/testsuites/automake/compile.am
index d5545c5a2f..ee1f77381a 100644
--- a/testsuites/automake/compile.am
+++ b/testsuites/automake/compile.am
@@ -10,7 +10,8 @@ STRIP = @STRIP@
##
AM_CPPFLAGS = $(TEST_FLAGS)
-AM_CFLAGS =
-AM_CXXFLAGS =
+AM_CFLAGS = $(TEST_C_FLAGS)
+AM_CXXFLAGS = $(TEST_CXX_FLAGS)
+AM_LDFLAGS = $(TEST_LD_FLAGS)
CLEANFILES = *.num *.nxe *.elf *.srec* *.bin *.bt *.ralf
diff --git a/testsuites/automake/local.am b/testsuites/automake/local.am
index aaf86ac44c..31299028d6 100644
--- a/testsuites/automake/local.am
+++ b/testsuites/automake/local.am
@@ -2,3 +2,5 @@ preinstall:
.PHONY: preinstall
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
+
+TEST_LD_FLAGS = -Wl,--wrap=printf -Wl,--wrap=puts -Wl,--wrap=putchar