Move test to test_mem

This commit is contained in:
lazymio
2021-11-23 00:41:49 +01:00
parent 7a1de17f37
commit ccfb66611f
2 changed files with 15 additions and 15 deletions

View File

@ -60,7 +60,22 @@ static void test_mem_protect()
OK(uc_close(qc));
}
static void test_splitting_mem_unmap()
{
uc_engine *uc;
OK(uc_open(UC_ARCH_X86, UC_MODE_32, &uc));
OK(uc_mem_map(uc, 0x20000, 0x1000, UC_PROT_NONE));
OK(uc_mem_map(uc, 0x21000, 0x2000, UC_PROT_NONE));
OK(uc_mem_unmap(uc, 0x21000, 0x1000));
OK(uc_close(uc));
}
TEST_LIST = {{"test_map_correct", test_map_correct},
{"test_map_wrapping", test_map_wrapping},
{"test_mem_protect", test_mem_protect},
{"test_splitting_mem_unmap", test_splitting_mem_unmap},
{NULL, NULL}};