run_across_bb: include expected vs actual PC in assertion error

This commit is contained in:
Willi Ballenthin 2015-11-13 10:14:38 -05:00
parent d09cc88495
commit eb73984763
1 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,9 @@ class RunAcrossBBTest(regress.RegressTest):
# 1010: b8 00 00 00 00 mov eax,0x0 < # 1010: b8 00 00 00 00 mov eax,0x0 <
# 1015: 40 inc eax < # 1015: 40 inc eax <
# 1016: 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) showpc(mu)
except UcError as e: except UcError as e: