]> git.proxmox.com Git - qemu.git/commitdiff
fix test_path
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Oct 2010 08:18:39 +0000 (10:18 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 23 Oct 2010 14:47:06 +0000 (14:47 +0000)
path.c grew quite a few new dependencies (mostly via cutils.c),
include them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tests/Makefile
tests/test_path.c

index e26b2d7fe69af104e8679d1c4f8826a66310e2b0..ef575a4814145c933217b280dc964a9013f2bd4b 100644 (file)
@@ -3,7 +3,7 @@
 
 $(call set-vpath, $(SRC_PATH)/tests)
 
-CFLAGS=-Wall -O2 -g -fno-strict-aliasing
+CFLAGS=-Wall -O2 -g -fno-strict-aliasing -I..
 #CFLAGS+=-msse2
 LDFLAGS=
 
index def7441c8cb64c76ee78d08a2d8473c4b7fe110e..234ed97088d308eaa947cc970a10f0a33eef07a5 100644 (file)
@@ -1,12 +1,21 @@
 /* Test path override code */
-#define _GNU_SOURCE
+#include "../config-host.h"
+#include "../qemu-malloc.c"
+#include "../cutils.c"
 #include "../path.c"
+#include "../trace.c"
+#ifdef CONFIG_SIMPLE_TRACE
+#include "../simpletrace.c"
+#endif
+
 #include <stdarg.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 
+void qemu_log(const char *fmt, ...);
+
 /* Any log message kills the test. */
-void gemu_log(const char *fmt, ...)
+void qemu_log(const char *fmt, ...)
 {
     va_list ap;