From 0383db9d279658a9bc1d992fbeff35db0cae887e Mon Sep 17 00:00:00 2001 From: emdel Date: Thu, 18 Feb 2016 06:21:04 -0800 Subject: [PATCH] Added assert --- tests/regress/jumping.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/regress/jumping.py b/tests/regress/jumping.py index 39172a5a..fdddc424 100755 --- a/tests/regress/jumping.py +++ b/tests/regress/jumping.py @@ -23,7 +23,7 @@ import regress mu = 0 -zf = 1 # (0:clear, 1:set) +zf = 0 # (0:clear, 1:set) class Init(regress.RegressTest): @@ -159,8 +159,8 @@ class Init(regress.RegressTest): except UcError as e: print("ERROR: %s" % e) - # now print out some registers - print(">>> Emulation done. Below is the CPU context") + rdx = mu.reg_read(UC_X86_REG_RDX) + self.assertEqual(rdx, 0xbabe, "RDX contains the wrong value. Eflags modification failed.") if __name__ == '__main__':