Basic test for previous regression
This commit is contained in:
14
tests/regress/test_old_ctl.py
Normal file
14
tests/regress/test_old_ctl.py
Normal 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()
|
||||
Reference in New Issue
Block a user