diff options
| author | Camille Mougey <commial@gmail.com> | 2017-07-28 09:22:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-28 09:22:36 +0200 |
| commit | 8f30712201984beda1bfedcd6e9804119369b35b (patch) | |
| tree | b17a513e292a4a74fed7a974ceaf8938aa0c3003 /test/core/asmblock.py | |
| parent | d9eecbf960e4a097e050e1ce1adb52999e4da76f (diff) | |
| parent | e33bffdca01c7528608681e6d79afcb1b46e37de (diff) | |
| download | miasm-8f30712201984beda1bfedcd6e9804119369b35b.tar.gz miasm-8f30712201984beda1bfedcd6e9804119369b35b.zip | |
Merge pull request #591 from serpilliere/remove_job_done
Asmblock: remove disasm engine job_done attribute
Diffstat (limited to '')
| -rw-r--r-- | test/core/asmblock.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/core/asmblock.py b/test/core/asmblock.py index c3b220df..eb7b54b2 100644 --- a/test/core/asmblock.py +++ b/test/core/asmblock.py @@ -19,12 +19,16 @@ first_block = mdis.dis_block(0) assert len(first_block.lines) == 5 print first_block +## Test redisassemble blocks +first_block_bis = mdis.dis_block(0) +assert len(first_block.lines) == len(first_block_bis.lines) +print first_block_bis + ## Disassembly of several block, with cache blocks = mdis.dis_multiblock(0) -assert len(blocks) == 0 +assert len(blocks) == 17 -## Test cache -mdis.job_done.clear() +## Test redisassemble blocks blocks = mdis.dis_multiblock(0) assert len(blocks) == 17 ## Equality between assembly lines is not yet implemented |