From b1995b4b8a40e2926e709962eedf25f00f9c7521 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Cayrou Date: Mon, 7 Aug 2017 04:31:10 +0200 Subject: [PATCH] Fix C syntax mistake in test_gdt_idt_x86.c (#867) Now 'make test' command works --- tests/unit/test_gdt_idt_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_gdt_idt_x86.c b/tests/unit/test_gdt_idt_x86.c index fe18e0d1..f34d2af5 100644 --- a/tests/unit/test_gdt_idt_x86.c +++ b/tests/unit/test_gdt_idt_x86.c @@ -84,7 +84,7 @@ static void test_idt_gdt_i386(/*void **state*/) assert(ldt.base == 0xfedcba98); assert(ldt.limit == 0x11111111); assert(ldt.selector == 0x3333); - assert(ldt.flags = 0x55555555); + assert(ldt.flags == 0x55555555); //userspace can only set tr selector, remainder are loaded from //GDT/LDT, but we allow all to emulator user @@ -92,7 +92,7 @@ static void test_idt_gdt_i386(/*void **state*/) assert(tr.base == 0x22222222); assert(tr.limit == 0x33333333); assert(tr.selector == 0x4444); - assert(tr.flags = 0x66666666); + assert(tr.flags == 0x66666666); // read from memory err = uc_mem_read(uc, r_esp, buf, 6);