about summary refs log tree commit diff stats
path: root/test/core/asmblock.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-06-10 13:47:33 +0200
committerGitHub <noreply@github.com>2020-06-10 13:47:33 +0200
commit975a527b4f268c4e41ab5ab259442c0941da6709 (patch)
tree9f14825d859aed095defcd087ade07f8389fd873 /test/core/asmblock.py
parent030d19ae958b40e52dd8dfe4475fc181eae1480e (diff)
parentae30dd263f043b9311294ba20cfacac0a5de32d1 (diff)
downloadmiasm-975a527b4f268c4e41ab5ab259442c0941da6709.tar.gz
miasm-975a527b4f268c4e41ab5ab259442c0941da6709.zip
Merge pull request #1252 from serpilliere/api_dis_callback
Updt dis_block_callback; apply_splitting
Diffstat (limited to 'test/core/asmblock.py')
-rw-r--r--test/core/asmblock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/asmblock.py b/test/core/asmblock.py
index e5ccf252..47f92569 100644
--- a/test/core/asmblock.py
+++ b/test/core/asmblock.py
@@ -274,7 +274,7 @@ assert asmcfg.successors(tob.loc_key) == [tob.loc_key]
 # Check split_block
 ## Without condition for a split, no change
 asmcfg_bef = asmcfg.copy()
-asmcfg.apply_splitting(mdis.loc_db)
+mdis.apply_splitting(asmcfg)
 assert asmcfg_bef == asmcfg
 open("graph5.dot", "w").write(asmcfg.dot())
 ## Create conditions for a block split
@@ -283,7 +283,7 @@ tob.bto.add(AsmConstraintTo(inside_firstbbl))
 asmcfg.rebuild_edges()
 assert len(asmcfg.pendings) == 1
 assert inside_firstbbl in asmcfg.pendings
-asmcfg.apply_splitting(mdis.loc_db)
+mdis.apply_splitting(asmcfg)
 ## Check result
 assert len(asmcfg) == 6
 assert len(asmcfg.pendings) == 0