Basic test for previous regression

This commit is contained in:
mio
2025-02-15 20:17:18 +08:00
parent a2d666c8e7
commit 7ec987e626

View File

@@ -0,0 +1,14 @@
import regress
from unicorn import *
from unicorn.x86_const import *
# Very basic testing to ensure the old api exists
# and we correctly implement __deprecated
class OldCtl(regress.RegressTest):
def runTest(self):
mu = Uc(UC_ARCH_X86, UC_MODE_32)
mu.ctl_tlb_mode(UC_TLB_CPU)
mu.ctl_set_tlb_mode(UC_TLB_VIRTUAL)
if __name__ == '__main__':
regress.main()