[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] fix test_path
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 5/6] fix test_path |
Date: |
Thu, 21 Oct 2010 10:18:39 +0200 |
path.c grew quite a few new dependencies (mostly via cutils.c),
include them.
Signed-off-by: Paolo Bonzini <address@hidden>
---
tests/Makefile | 2 +-
tests/test_path.c | 13 +++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/tests/Makefile b/tests/Makefile
index e26b2d7..ef575a4 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -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=
diff --git a/tests/test_path.c b/tests/test_path.c
index def7441..234ed97 100644
--- a/tests/test_path.c
+++ b/tests/test_path.c
@@ -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;
--
1.7.2.3
- [Qemu-devel] [PATCH 0/6] First part of autoconfy series: cleanup tests/, Paolo Bonzini, 2010/10/21
- [Qemu-devel] [PATCH 2/6] unbreak "make" from vpath-built tests directory, Paolo Bonzini, 2010/10/21
- [Qemu-devel] [PATCH 1/6] unbreak "make" from tests directory, Paolo Bonzini, 2010/10/21
- [Qemu-devel] [PATCH 3/6] disable test_enter on i386, it is broken, Paolo Bonzini, 2010/10/21
- [Qemu-devel] [PATCH 4/6] make runcom compile on recent distributions, Paolo Bonzini, 2010/10/21
- [Qemu-devel] [PATCH 5/6] fix test_path,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 6/6] rewrite i386 tests Makefile, Paolo Bonzini, 2010/10/21
- Re: [Qemu-devel] [PATCH 0/6] First part of autoconfy series: cleanup tests/, Luiz Capitulino, 2010/10/22
Re: [Qemu-devel] [PATCH 0/6] First part of autoconfy series: cleanup tests/, Blue Swirl, 2010/10/23