aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests
diff options
context:
space:
mode:
authorkaf24@localhost.localdomain <kaf24@localhost.localdomain>2007-01-14 12:03:31 +0000
committerkaf24@localhost.localdomain <kaf24@localhost.localdomain>2007-01-14 12:03:31 +0000
commit6d675a4ad8b9338d461076fb619d8bc084d3bcc2 (patch)
treef6cc172b9eecab3476a8673601ddd6c4c922e1ad /tools/tests
parentab5c6b8f111c738c8c1402a7dd46a5a612938b2b (diff)
downloadxen-6d675a4ad8b9338d461076fb619d8bc084d3bcc2.tar.gz
xen-6d675a4ad8b9338d461076fb619d8bc084d3bcc2.tar.bz2
xen-6d675a4ad8b9338d461076fb619d8bc084d3bcc2.zip
[XEN] Emulate MUL/DIV. Tweak test suite build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/tests')
-rw-r--r--tools/tests/Makefile1
-rw-r--r--tools/tests/test_x86_emulator.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
index 197abc5b3f..45d4294f9a 100644
--- a/tools/tests/Makefile
+++ b/tools/tests/Makefile
@@ -7,6 +7,7 @@ TARGET := test_x86_emulator
.PHONY: all
all: $(TARGET)
+.PHONY: blowfish.bin
blowfish.bin:
make -f blowfish.mk all
diff --git a/tools/tests/test_x86_emulator.c b/tools/tests/test_x86_emulator.c
index a59bc467e2..1ebe2bb6dd 100644
--- a/tools/tests/test_x86_emulator.c
+++ b/tools/tests/test_x86_emulator.c
@@ -501,7 +501,10 @@ int main(int argc, char **argv)
printf(".");
rc = x86_emulate(&ctxt, &emulops);
if ( rc != 0 )
- goto fail;
+ {
+ printf("failed at %%eip == %08x\n", (unsigned int)regs.eip);
+ return 1;
+ }
}
if ( (regs.esp != ((unsigned long)res + MMAP_SZ)) ||
(regs.eax != 2) || (regs.edx != 1) )