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

Open
github-bot wants to merge 1 commit from github-bot/gh-613 into main AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 13:29 UTC · original
AnastasisKon:vibe/title-call-tests-1705ac → main · +27 −0 · 1 files · 1 commits · open

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
**@⁠AnastasisKon** on GitHub · 2026-11-28 13:29 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/613) `AnastasisKon:vibe/title-call-tests-1705ac` → `main` · +27 −0 · 1 files · 1 commits · open 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
title.rs had no tests. The new tests check call() forwards up to six
u64 args and returns the result (missing args read as 0), on host and
x86_64-darwin, and that expose() returns the object unchanged where it
is the identity (gated off macos/x86_64, where it bridges the table).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 13:34:37 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/617/head:github-bot/gh-613'
git switch 'github-bot/gh-613'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-613'
git switch 'github-bot/gh-613'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-613'
git switch 'github-bot/gh-613'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-613'
git switch 'main'
git merge --squash 'github-bot/gh-613'
git switch 'main'
git merge --ff-only 'github-bot/gh-613'
git switch 'main'
git merge 'github-bot/gh-613'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.