mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 02:53:42 +00:00
run_across_bb: include expected vs actual PC in assertion error
This commit is contained in:
parent
d09cc88495
commit
eb73984763
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@ class RunAcrossBBTest(regress.RegressTest):
|
|||
# 1010: b8 00 00 00 00 mov eax,0x0 <
|
||||
# 1015: 40 inc eax <
|
||||
# 1016: 40 inc eax <
|
||||
self.assertEqual(0x1016, mu.reg_read(UC_X86_REG_EIP), "unexpected PC (4)")
|
||||
self.assertEqual(0x1016, mu.reg_read(UC_X86_REG_EIP),
|
||||
"unexpected PC (4): 0x%x vs 0x%x" % (
|
||||
0x1016, mu.reg_read(UC_X86_REG_EIP)))
|
||||
showpc(mu)
|
||||
|
||||
except UcError as e:
|
||||
|
|
Loading…
Reference in a new issue