diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-07-24 09:27:02 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-18 16:04:26 +1000 |
commit | 98e09fb48a22949fe8e073f866425643e9501767 (patch) | |
tree | e5ac49682c58a2d9bb1b2af5a3677a23186337be /core/test | |
parent | 3c549d25eda9a4844c95207e8aa15e0928e14f5f (diff) | |
download | skiboot-98e09fb48a22949fe8e073f866425643e9501767.zip skiboot-98e09fb48a22949fe8e073f866425643e9501767.tar.gz skiboot-98e09fb48a22949fe8e073f866425643e9501767.tar.bz2 |
Build host programs (and checks) with debug enabled
This enables memory poisoning in allocations and list checking
among other things.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/test')
-rw-r--r-- | core/test/Makefile.check | 2 | ||||
-rw-r--r-- | core/test/run-device.c | 1 | ||||
-rw-r--r-- | core/test/stubs.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/core/test/Makefile.check b/core/test/Makefile.check index cc3b47a..69abd01 100644 --- a/core/test/Makefile.check +++ b/core/test/Makefile.check @@ -17,6 +17,8 @@ CORE_TEST := core/test/run-device \ core/test/run-timebase \ core/test/run-timer +HOSTCFLAGS+=-I . -I include + CORE_TEST_NOSTUB := core/test/run-console-log CORE_TEST_NOSTUB += core/test/run-console-log-buf-overrun CORE_TEST_NOSTUB += core/test/run-console-log-pr_fmt diff --git a/core/test/run-device.c b/core/test/run-device.c index 61ecf84..3da4a2f 100644 --- a/core/test/run-device.c +++ b/core/test/run-device.c @@ -31,7 +31,6 @@ static inline bool fake_is_rodata(const void *p) #define zalloc(bytes) calloc((bytes), 1) #include "../device.c" -#include "../../ccan/list/list.c" /* For list_check */ #include <assert.h> #include "../../test/dt_common.c" diff --git a/core/test/stubs.c b/core/test/stubs.c index 33a3385..39ff18d 100644 --- a/core/test/stubs.c +++ b/core/test/stubs.c @@ -17,6 +17,8 @@ #include <stdio.h> #include <stdarg.h> +#include "../../ccan/list/list.c" + void _prlog(int log_level __attribute__((unused)), const char* fmt, ...) __attribute__((format (printf, 2, 3))); #ifndef pr_fmt |