diff --git a/tests/unit/test_mem.c b/tests/unit/test_mem.c index 6e3056ff..8fef848b 100644 --- a/tests/unit/test_mem.c +++ b/tests/unit/test_mem.c @@ -297,18 +297,18 @@ static void test_snapshot(void) OK(uc_emu_start(uc, 0x1000, 0x1000 + sizeof(code) - 1, 0, 0)); OK(uc_mem_read(uc, 0x2020, &mem, sizeof(mem))); - TEST_CHECK(mem == 1); + TEST_CHECK(LEINT32(mem) == 1); OK(uc_context_save(uc, c1)); OK(uc_emu_start(uc, 0x1000, 0x1000 + sizeof(code) - 1, 0, 0)); OK(uc_mem_read(uc, 0x2020, &mem, sizeof(mem))); - TEST_CHECK(mem == 2); + TEST_CHECK(LEINT32(mem) == 2); OK(uc_context_restore(uc, c1)); OK(uc_mem_read(uc, 0x2020, &mem, sizeof(mem))); - TEST_CHECK(mem == 1); + TEST_CHECK(LEINT32(mem) == 1); OK(uc_context_restore(uc, c0)); OK(uc_mem_read(uc, 0x2020, &mem, sizeof(mem))); - TEST_CHECK(mem == 0); + TEST_CHECK(LEINT32(mem) == 0); OK(uc_mem_read(uc, 0x1000, &code_data, sizeof(code_data))); TEST_CHECK(code_data == 0xa1); diff --git a/tests/unit/test_x86.c b/tests/unit/test_x86.c index 33f19374..bc2afc36 100644 --- a/tests/unit/test_x86.c +++ b/tests/unit/test_x86.c @@ -1598,8 +1598,8 @@ static void test_x86_mmu(void) OK(uc_emu_start(uc, rip, 0x0, 0, 0)); OK(uc_mem_read(uc, 0x1000, &parrent, sizeof(parrent))); OK(uc_mem_read(uc, 0x2000, &child, sizeof(child))); - TEST_CHECK(parrent == 60); - TEST_CHECK(child == 42); + TEST_CHECK(LEINT64(parrent) == 60); + TEST_CHECK(LEINT64(child) == 42); OK(uc_context_free(context)); OK(uc_close(uc)); }