From e6df806a3f46b5488e5e383add9cda43e0059dbe Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 8 Nov 2017 13:27:25 +1100 Subject: 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. --- testsuites/automake/compile.am | 5 +++-- testsuites/automake/local.am | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'testsuites/automake') 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 -- cgit v1.2.3