Remove __TEST_HARNESS__ tests from x86_emulate: instead check for __XEN__

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-05-18 10:43:05 +01:00
1 parent 4ed20e3471
commit fc87244286
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -4,8 +4,6 @@ include $(XEN_ROOT)/tools/Rules.mk
TARGET := test_x86_emulator
HOSTCFLAGS += -D__TEST_HARNESS__
.PHONY: all
all: $(TARGET)
+2 -2
View File
@@ -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>
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.