From eb7398476332dbd7cb95310b4c70ba19de8221ff Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Fri, 13 Nov 2015 10:14:38 -0500 Subject: [PATCH] run_across_bb: include expected vs actual PC in assertion error --- tests/regress/run_across_bb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/regress/run_across_bb.py b/tests/regress/run_across_bb.py index 2f969894..074db4d4 100755 --- a/tests/regress/run_across_bb.py +++ b/tests/regress/run_across_bb.py @@ -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: