Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python regression failures #2038

Open
elicn opened this issue Oct 18, 2024 · 1 comment
Open

Fix Python regression failures #2038

elicn opened this issue Oct 18, 2024 · 1 comment

Comments

@elicn
Copy link
Contributor

elicn commented Oct 18, 2024

Three of the Python regression tests are still failing (using dev commit 3691e33).
Reproduce by running:

python3 $UCHOME/tests/regress/regress.py

Output:

[INFO] starting discovery
[INFO] 66 test modules found
[INFO] 85 test cases were added
........F................................F.................F.........................
======================================================================
FAIL: runTest (jumping.Jumping)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/elicn/Downloads/unicorn/tests/regress/jumping.py", line 123, in runTest
    self.assertEqual(self.uc.reg_read(UC_X86_REG_RDX), 0xbabe, "rdx contains the wrong value. eflags modification failed")
AssertionError: 49354 != 47806 : rdx contains the wrong value. eflags modification failed

======================================================================
FAIL: runTest (sparc_reg.TestSparcRegRead)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/elicn/Downloads/unicorn/tests/regress/sparc_reg.py", line 103, in runTest
    self.assertEqual(4 * 32, uc.reg_read(UC_SPARC_REG_PC))  # make sure we executed all instructions
AssertionError: 128 != 4

======================================================================
FAIL: runTest (mips_except.MipsExcept)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/elicn/Downloads/unicorn/tests/regress/mips_except.py", line 36, in runTest
    self.assertEqual(UC_ERR_READ_UNALIGNED, m.exception.errno)
AssertionError: 16 != 21

----------------------------------------------------------------------
Ran 85 tests in 13.830s

FAILED (failures=3)
@wtdcode
Copy link
Member

wtdcode commented Oct 18, 2024

Noted, will have a look before 2.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants