Skip to content

Commit 7ec987e

Browse files
committed
Basic test for previous regression
1 parent a2d666c commit 7ec987e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/regress/test_old_ctl.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import regress
2+
from unicorn import *
3+
from unicorn.x86_const import *
4+
5+
# Very basic testing to ensure the old api exists
6+
# and we correctly implement __deprecated
7+
class OldCtl(regress.RegressTest):
8+
def runTest(self):
9+
mu = Uc(UC_ARCH_X86, UC_MODE_32)
10+
mu.ctl_tlb_mode(UC_TLB_CPU)
11+
mu.ctl_set_tlb_mode(UC_TLB_VIRTUAL)
12+
13+
if __name__ == '__main__':
14+
regress.main()

0 commit comments

Comments
 (0)