diff options
| author | serpilliere <fabrice.desclaux@cea.fr> | 2016-04-25 22:12:45 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-04-26 11:05:41 +0200 |
| commit | 5dc6a1d5fef50253f98838db681f92d0071172f5 (patch) | |
| tree | 314f4a3ca5b94694db7d71ac6e1fe4a10e39bf40 /test/arch/x86/unit/mn_int.py | |
| parent | 65cf848438651b3bfe01243778af9e6d5b0470d6 (diff) | |
| download | miasm-5dc6a1d5fef50253f98838db681f92d0071172f5.tar.gz miasm-5dc6a1d5fef50253f98838db681f92d0071172f5.zip | |
Test: TCC conditional tests
Diffstat (limited to 'test/arch/x86/unit/mn_int.py')
| -rw-r--r-- | test/arch/x86/unit/mn_int.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/arch/x86/unit/mn_int.py b/test/arch/x86/unit/mn_int.py index 0f4a5717..9d964220 100644 --- a/test/arch/x86/unit/mn_int.py +++ b/test/arch/x86/unit/mn_int.py @@ -1,4 +1,6 @@ #! /usr/bin/env python +import sys + from miasm2.jitter.csts import EXCEPT_INT_XX from asm_test import Asm_Test_32 @@ -15,8 +17,8 @@ class Test_INT(Asm_Test_32): jitter.cpu.set_exception(0) return True - def __init__(self): - super(Test_INT, self).__init__() + def __init__(self, jitter): + super(Test_INT, self).__init__(jitter) self.int_num = 0 self.myjit.add_exception_handler(EXCEPT_INT_XX, self.set_int_num) @@ -28,4 +30,4 @@ class Test_INT(Asm_Test_32): if __name__ == "__main__": - [test()() for test in [Test_INT]] + [test(*sys.argv[1:])() for test in [Test_INT]] |