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

Test cases status - Windows #1500

Closed
greenozon opened this issue Aug 11, 2024 · 1 comment
Closed

Test cases status - Windows #1500

greenozon opened this issue Aug 11, 2024 · 1 comment

Comments

@greenozon
Copy link
Contributor

after successfully bulding the full package (including llvm) I did run some subset under windows
the quesitons are

  1. why do we have different results when running with default options and using sequential run (-m flag)
  2. here is the failed TC when running with -m
c:\Dev\re\miasm\test>python test_all.py -o python -m
 TEST\ARCH x86/sem.py python
DONE x86/sem.py python 0s
 TEST\ARCH x86/unit/mn_stack.py python
DONE x86/unit/mn_stack.py python 1s
 TEST\ARCH x86/unit/mn_das.py python
DONE x86/unit/mn_das.py python 3s
 TEST\ARCH x86/unit/mn_pshufb.py python
DONE x86/unit/mn_pshufb.py python 0s

....

Result: 136/137 pass
ERROR jitcore.py python
b'Traceback (most recent call last):\r\n  File "c:\\Dev\\re\\miasm\\test\\jitter\\jitcore.py", line 12, in <module>\r\n    jitter.cpu.RAX = -1\r\n    ^^^^^^^^^^^^^^\r\nTypeError: Arg too big for uint64_t\r\n'

I'm curious how come that this speicific TC fails... is -1 value bigger then uint64_t type?

@greenozon
Copy link
Contributor Author

greenozon commented Aug 13, 2024

After reading some materials come to conclusion that due to differences in OS and compilers, there is differnet behaviour of handing uint64_t values
Under Windows python does not allow to set negative values into unsigned type (uint64_t)
so here is a PR to address this corner case: #1501

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

1 participant