fix several tests due to not properly bswap on s390x
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user