diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-05-17 09:50:28 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-05-17 12:30:04 +0200 |
| commit | 53273fa3b21e618cd9cc745624787450bc441476 (patch) | |
| tree | 244766e52d6fd83917de117ee3c14b830de8cb84 /test/jitter/test_post_instr.py | |
| parent | 6f7fbfb8b57c6a7dc382361520ab34c6d428b881 (diff) | |
| download | miasm-53273fa3b21e618cd9cc745624787450bc441476.tar.gz miasm-53273fa3b21e618cd9cc745624787450bc441476.zip | |
Jitter: fix bad block management
Diffstat (limited to '')
| -rw-r--r-- | test/jitter/test_post_instr.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/jitter/test_post_instr.py b/test/jitter/test_post_instr.py index 3e68d58e..edf86645 100644 --- a/test/jitter/test_post_instr.py +++ b/test/jitter/test_post_instr.py @@ -1,6 +1,6 @@ +import sys from miasm2.analysis.machine import Machine from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE, EXCEPT_BREAKPOINT_MEMORY, EXCEPT_ACCESS_VIOL -import sys machine = Machine("x86_32") jitter = machine.jitter(sys.argv[1]) @@ -41,6 +41,3 @@ try: jitter.continue_run() except AssertionError: assert jitter.vm.get_exception() == EXCEPT_ACCESS_VIOL -except RuntimeError: - assert sys.argv[1] == 'python' - assert jitter.vm.get_exception() == EXCEPT_ACCESS_VIOL |