From patchwork Thu Oct 21 08:18:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 68550 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EE603B6EE9 for ; Thu, 21 Oct 2010 19:29:44 +1100 (EST) Received: from localhost ([127.0.0.1]:44321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8qWr-0001Um-NG for incoming@patchwork.ozlabs.org; Thu, 21 Oct 2010 04:29:41 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=/c3uPuLfhfk0YWcGQ5UG2ehH7ef0ld9clxP3zKqQtvU=; b=xetpqKWw+zclLyPHKQe14nr4KtOqowkR0TfJSG9rmFWqy5Vd3ASP7o1DejdIpaPixp GtWsxUxJDeCf8zDRkJv4j+8OQZgE+MobysSMyyzGHUj9EdK801VRpHq2qDP5oOTJVs5K pWt8ij13bDhBM4RI+l/UDnSmMAPGuA0HRABqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=dHKso9gs1wQrImpCXT+1aqEu+UeMpChG0ng1ywXbMaQr9hR2hRVnzzogvS0GpqdC8R 9gr60PHl6fMGrmSse3N/vZPuitgrwRsSoeD19ZGdCh371w2054b839rethMVDe1fXrFM Tv6CMe83YHY6kM3gq1MT8i3Xm58Djz3WhhPXc= Received: by 10.103.239.14 with SMTP id q14mr453882mur.15.1287649148768; Thu, 21 Oct 2010 01:19:08 -0700 (PDT) Received: from localhost.localdomain (s209p8.home.99maxprogres.cz [85.93.118.17]) by mx.google.com with ESMTPS id k21sm637589faa.1.2010.10.21.01.19.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Oct 2010 01:19:08 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 21 Oct 2010 10:18:39 +0200 Message-Id: <1287649120-30740-6-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1287649120-30740-1-git-send-email-pbonzini@redhat.com> References: <1287649120-30740-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 5/6] fix test_path X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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;