Add uc_close

This commit is contained in:
lazymio 2021-11-01 10:23:47 +01:00
parent c60825bf6e
commit 147cb62240
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -11,6 +11,7 @@ const uint64_t code_len = 0x4000;
OK(uc_open(UC_ARCH_X86, UC_MODE_32, &uc)); \ OK(uc_open(UC_ARCH_X86, UC_MODE_32, &uc)); \
OK(uc_ctl(uc, UC_CTL_READ(ctl_type, 1), &arg)); \ OK(uc_ctl(uc, UC_CTL_READ(ctl_type, 1), &arg)); \
TEST_CHECK(arg == expected); \ TEST_CHECK(arg == expected); \
OK(uc_close(uc)); \
} }
GEN_SIMPLE_READ_TEST(mode, UC_CTL_UC_MODE, int, 4) GEN_SIMPLE_READ_TEST(mode, UC_CTL_UC_MODE, int, 4)