From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49827 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8qMg-0004Go-CA for qemu-devel@nongnu.org; Thu, 21 Oct 2010 04:19:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8qMf-00043X-C3 for qemu-devel@nongnu.org; Thu, 21 Oct 2010 04:19:10 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:50450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8qMf-00042E-6p for qemu-devel@nongnu.org; Thu, 21 Oct 2010 04:19:09 -0400 Received: by mail-fx0-f45.google.com with SMTP id 9so3748246fxm.4 for ; Thu, 21 Oct 2010 01:19:08 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 21 Oct 2010 10:18:39 +0200 Message-Id: <1287649120-30740-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1287649120-30740-1-git-send-email-pbonzini@redhat.com> References: <1287649120-30740-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 5/6] fix test_path List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org path.c grew quite a few new dependencies (mostly via cutils.c), include them. Signed-off-by: Paolo Bonzini --- 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 #include #include +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