From ad0a118fa322b39887938185911d4fb332617b5c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 29 Apr 2014 12:09:24 +0100 Subject: tests/tcg: Fix compilation of test_path The test_path binary is (unlike the other test binaries in tests/tcg) actually intended to be compiled with the same compiler used to build the main QEMU executables. It actually #includes a number of the QEMU source files in an attempt to unit-test the util/path.c functions, and so if it is not compiled with the same compiler used by configure to set CONFIG_ settings then it is liable to fail to build. Fix the makefile to build it with the default C compiler rules, not CC_I386, and fix the test itself not to include a lot of unnecessary trace related source files which cause the build to fail if the trace backend is anything other than 'simple'. Signed-off-by: Peter Maydell Signed-off-by: Michael Tokarev --- tests/tcg/test_path.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tests/tcg/test_path.c') diff --git a/tests/tcg/test_path.c b/tests/tcg/test_path.c index f8dd36aab2..1c29bce263 100644 --- a/tests/tcg/test_path.c +++ b/tests/tcg/test_path.c @@ -1,17 +1,10 @@ /* Test path override code */ -#define _GNU_SOURCE #include "config-host.h" #include "util/cutils.c" #include "util/hexdump.c" #include "util/iov.c" #include "util/path.c" #include "util/qemu-timer-common.c" -#include "trace/control.c" -#include "../trace/generated-events.c" -#ifdef CONFIG_TRACE_SIMPLE -#include "trace/simple.c" -#endif - #include #include #include -- cgit v1.2.3