WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Remove __TEST_HARNESS__ tests from x86_emulate: instead

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 May 2006 10:58:15 +0000
Delivery-date: Thu, 18 May 2006 04:00:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 25dbb18196335574e4f582fd5ddb941f41169110
# Parent  cb4d2fc638eca7a4270da168fcf63f2fd12afd67
Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/tests/Makefile       |    2 --
 xen/arch/x86/x86_emulate.c |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff -r cb4d2fc638ec -r 25dbb1819633 tools/tests/Makefile
--- a/tools/tests/Makefile      Thu May 18 10:40:55 2006 +0100
+++ b/tools/tests/Makefile      Thu May 18 10:43:05 2006 +0100
@@ -3,8 +3,6 @@ include $(XEN_ROOT)/tools/Rules.mk
 include $(XEN_ROOT)/tools/Rules.mk
 
 TARGET := test_x86_emulator
-
-HOSTCFLAGS += -D__TEST_HARNESS__
 
 .PHONY: all
 all: $(TARGET)
diff -r cb4d2fc638ec -r 25dbb1819633 xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c        Thu May 18 10:40:55 2006 +0100
+++ b/xen/arch/x86/x86_emulate.c        Thu May 18 10:43:05 2006 +0100
@@ -6,7 +6,7 @@
  * Copyright (c) 2005 Keir Fraser
  */
 
-#ifdef __TEST_HARNESS__
+#ifndef __XEN__
 #include <stdio.h>
 #include <stdint.h>
 #include <public/xen.h>
@@ -1127,7 +1127,7 @@ x86_emulate_memop(
     return -1;
 }
 
-#ifndef __TEST_HARNESS__
+#ifdef __XEN__
 
 #include <asm/mm.h>
 #include <asm/uaccess.h>

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__, Xen patchbot-unstable <=