diff options
| author | Romain Lesteven <romain.lesteven@gatewatcher.com> | 2021-05-05 11:02:33 +0200 |
|---|---|---|
| committer | Romain Lesteven <romain.lesteven@gatewatcher.com> | 2021-05-05 11:02:33 +0200 |
| commit | e0abd462cefd168ae82426533c1a822254aca374 (patch) | |
| tree | 486f3b67c279b452085943864dea336c760106aa /test/jitter/jit_options.py | |
| parent | acfb6e552b287cc91d2060456be4ea7071b9ba8e (diff) | |
| download | miasm-e0abd462cefd168ae82426533c1a822254aca374.tar.gz miasm-e0abd462cefd168ae82426533c1a822254aca374.zip | |
Replace jitter.run boolean by jitter.running
Diffstat (limited to 'test/jitter/jit_options.py')
| -rw-r--r-- | test/jitter/jit_options.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/jitter/jit_options.py b/test/jitter/jit_options.py index f1258323..3b61cff8 100644 --- a/test/jitter/jit_options.py +++ b/test/jitter/jit_options.py @@ -25,7 +25,7 @@ run_addr = 0x40000000 loc_db = LocationDB() def code_sentinelle(jitter): - jitter.run = False + jitter.running = False jitter.pc = 0 return True @@ -50,7 +50,7 @@ myjit = init_jitter(loc_db) myjit.init_run(run_addr) myjit.continue_run() -assert myjit.run is False +assert myjit.running is False assert myjit.cpu.EAX == 0x0 ## Let's specify a max_exec_per_call @@ -74,7 +74,7 @@ myjit.init_run(run_addr) myjit.exec_cb = cb myjit.continue_run() -assert myjit.run is True +assert myjit.running is True # Use a '>=' because it's a 'max_...' assert myjit.cpu.EAX >= 0xA @@ -94,7 +94,7 @@ myjit.init_run(run_addr) myjit.exec_cb = cb myjit.continue_run() -assert myjit.run is False +assert myjit.running is False assert myjit.cpu.EAX == 0x00 ## main(2) + (loop_main(3))*(0x10) + loop_end(1) + 0x1337beef (1) assert counter == 52 |