test(victory-hle): pin title::call's arg forwarding and expose's identity #613

Open
AnastasisKon wants to merge 1 commit from upstream-pr/613 into main
AnastasisKon commented 2026-11-28 13:29:33 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T13:29:33Z.


Test-only change: crates/victory-hle/src/title.rs (the two title/host crossings) had no tests.

What the tests pin

  • title::call forwards up to six u64 args to an extern "system" function and returns its result; missing args read as 0. Runs on host arm64 and x86_64-apple-darwin (Rosetta) — on the latter a non-title function takes the direct path.
  • title::expose returns the object unchanged where it is the identity (gated off macos/x86_64, where it bridges the vtable instead).

Testing

  • cargo test -p victory-hle --lib title:: host arm64 — 2 pass; --target x86_64-apple-darwin — 1 pass (expose test cfg'd out there)
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask — all pass
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — clean
  • cargo xtask policy — 404 files ok

Checklist

  • One change, one PR
  • Branch vibe/title-call-tests-1705ac from upstream/main, pushed to my fork only
  • No game/GDK files, no dumps/logs in the repo
  • No AI attribution in the diff
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5540609242 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/613). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T13:29:33Z. --- Test-only change: `crates/victory-hle/src/title.rs` (the two title/host crossings) had no tests. ## What the tests pin - `title::call` forwards up to six `u64` args to an `extern "system"` function and returns its result; missing args read as 0. Runs on host arm64 and x86_64-apple-darwin (Rosetta) — on the latter a non-title function takes the direct path. - `title::expose` returns the object unchanged where it is the identity (gated off `macos/x86_64`, where it bridges the vtable instead). ## Testing - [x] `cargo test -p victory-hle --lib title::` host arm64 — 2 pass; `--target x86_64-apple-darwin` — 1 pass (expose test cfg'd out there) - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` — all pass - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — clean - [x] `cargo xtask policy` — 404 files ok ## Checklist - [x] One change, one PR - [x] Branch `vibe/title-call-tests-1705ac` from `upstream/main`, pushed to my fork only - [x] No game/GDK files, no dumps/logs in the repo - [x] No AI attribution in the diff
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/613:upstream-pr/613'
git switch 'upstream-pr/613'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/613'
git switch 'upstream-pr/613'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/613'
git switch 'upstream-pr/613'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/613'
git switch 'main'
git merge --squash 'upstream-pr/613'
git switch 'main'
git merge --ff-only 'upstream-pr/613'
git switch 'main'
git merge 'upstream-pr/613'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!613
No description provided.