about summary refs log tree commit diff stats
path: root/test/core/asmblock.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-06-09 18:42:04 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2020-06-10 11:27:12 +0200
commitae30dd263f043b9311294ba20cfacac0a5de32d1 (patch)
tree89089283782a1ce2f797f72e0f5760c75163ab2a /test/core/asmblock.py
parentdd2fd9c8e424463591782472192627cfdbe397f5 (diff)
downloadmiasm-ae30dd263f043b9311294ba20cfacac0a5de32d1.tar.gz
miasm-ae30dd263f043b9311294ba20cfacac0a5de32d1.zip
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