about summary refs log tree commit diff stats
path: root/test/arch/x86/unit/mn_int.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2016-04-26 12:21:42 +0200
committerCamille Mougey <commial@gmail.com>2016-04-26 12:21:42 +0200
commita4b68c16b2adcffc912de45baf2ddfb3aa8ad15b (patch)
tree799c371e50e75d305356231629e0451d3e4ae82f /test/arch/x86/unit/mn_int.py
parent1d2b008cfd6f8ea92c5af3e18081d8c56e43820e (diff)
parent7feb00c46c70529b22126913d4adea7e196cb706 (diff)
downloadmiasm-a4b68c16b2adcffc912de45baf2ddfb3aa8ad15b.tar.gz
miasm-a4b68c16b2adcffc912de45baf2ddfb3aa8ad15b.zip
Merge pull request #357 from serpilliere/jit_gcc
Jit gcc
Diffstat (limited to 'test/arch/x86/unit/mn_int.py')
-rw-r--r--test/arch/x86/unit/mn_int.py8
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]]