Skip to content

[bug] Fixed test_invalid_instruction always reporting failure#513

Open
es3n1n wants to merge 2 commits into
asmjit:masterfrom
es3n1n:es3n1n/fix-test_invalid_instruction
Open

[bug] Fixed test_invalid_instruction always reporting failure#513
es3n1n wants to merge 2 commits into
asmjit:masterfrom
es3n1n:es3n1n/fix-test_invalid_instruction

Conversation

@es3n1n

@es3n1n es3n1n commented Apr 20, 2026

Copy link
Copy Markdown

AssemblerTester::test_invalid_instruction in asmjit_test_assembler.h has a second guard if (err != Error::kOk) right after an early return on err == kOk, so it's always true and every FAIL_INSTRUCTION(...) call prints "failed with X, but should have failed with Y" even when the errors match

The x86 test file already defines this macro for the
commented-out failure block; mirror it on the x64 side so future
PRs can add FAIL_INSTRUCTION(...) cases inline without
reintroducing the macro each time.
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

Successfully merging this pull request may close these issues.

1 participant