8000 test: amigastubs passes arguments narrower than a long by codewiz · Pull Request #117 · AmigaPorts/libnix · GitHub
[go: up one dir, main page]

Skip to content

test: amigastubs passes arguments narrower than a long - #117

Merged
codewiz merged 1 commit into
masterfrom
amigastubs-narrow-args
Nov 17, 2026
Merged

codewiz merged 1 commit into
masterfrom
amigastubs-narrow-args

Conversation

@codewiz
@codewiz codewiz commented Nov 16, 2026 •
Copy link
Copy Markdown
Member

The libamiga.a stubs pass every argument and result as a long. These checks cover the narrower types, where a stub that loads or extends the wrong part of a register gives a wrong value:

  • ToUpper(0xe9) == 0xc9: a UBYTE above 127, in and out (Latin-1 e acute).
  • SetTaskPri(me, -5): a negative BYTE in, checked in tc_Node.ln_Pri, and the old priority back out; then restored.
  • SplitName("ab/cd", '/', ...): a UBYTE separator, and a WORD result: 3 after the first part, -1 after the last.

Testing

make check-target under volamos: 0 of 46 fail, amigastubs included. It also passed earlier under volamos with four flag sets.

vamos can't run it: it has no SetTaskPri() or SplitName(). vamos isn't a supported simulator for these tests at this time; reported upstream as cnvogelg/amitools#283.

🤖 Generated with Claude Code

ToUpper() with a UBYTE above 127, SetTaskPri() with a negative BYTE, and
SplitName() with a UBYTE separator and a WORD result of -1, through the
libamiga.a stubs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codewiz
codewiz commented Nov 17, 2026
Copy link
Copy Markdown
Member Author

Merging as pre-approved: test only change

@codewiz
codewiz merged commit b2f1ca3 into master Nov 17, 2026
3 checks passed
@codewiz
codewiz deleted the amigastubs-narrow-args branch November 17, 2026 01:48
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

0