diff options
| author | William Bruneau <william.bruneau@epfedu.fr> | 2021-02-18 15:06:56 +0100 |
|---|---|---|
| committer | William Bruneau <william.bruneau@epfedu.fr> | 2021-02-24 18:30:14 +0100 |
| commit | 87061c1045c8a66332aca9e5b5b928b79dd326ce (patch) | |
| tree | e735bbf0ae385968db506e251d5be5e7f9e12cd1 /test/jitter/test_post_instr.py | |
| parent | 381d370b73b980190e9a24753a595b043193bec1 (diff) | |
| download | miasm-87061c1045c8a66332aca9e5b5b928b79dd326ce.tar.gz miasm-87061c1045c8a66332aca9e5b5b928b79dd326ce.zip | |
Display exception flag on jitter exceptions
Diffstat (limited to '')
| -rw-r--r-- | test/jitter/test_post_instr.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/jitter/test_post_instr.py b/test/jitter/test_post_instr.py index 16e51830..5a690e6b 100644 --- a/test/jitter/test_post_instr.py +++ b/test/jitter/test_post_instr.py @@ -6,6 +6,7 @@ from miasm.analysis.machine import Machine from miasm.jitter.csts import PAGE_READ, PAGE_WRITE, \ EXCEPT_BREAKPOINT_MEMORY, EXCEPT_ACCESS_VIOL from miasm.core.locationdb import LocationDB +from miasm.jitter.jitload import JitterException machine = Machine("x86_32") loc_db = LocationDB() @@ -45,5 +46,5 @@ jitter.vm.add_memory_breakpoint(0x11000-4, 4, PAGE_READ | PAGE_WRITE) jitter.init_run(0x1000) try: jitter.continue_run() -except AssertionError: +except JitterException: assert jitter.vm.get_exception() == EXCEPT_ACCESS_VIOL |