Loader: VICTORY_HLE_PROBE names a prebuilt hle-probe fixture #3270

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

@⁠neonbyte1 on GitHub · 2026-11-26 15:14 UTC · original
neonbyte1:pr/hle-probe → main · +5 −1 · 1 files · 1 commits · open

Split out of #1218, as the maintainer triage asked, so that PR stays about the Wine test runner.

crates/victory-loader/tests/load_probe.rs builds the tests/fixtures/hle-probe fixture by running cargo from inside the test. Under Wine, the test process can't start the host's cargo, which isn't a Windows executable. With this change, VICTORY_HLE_PROBE, when set, names an already-built hle_probe.dll, and the test uses it directly. When it's unset, nothing changes.

One commit, one file; no fixture, runner or docs changes.

Tested under Wine (vkd3d-proton, Linux, RTX 5090) with the fixture cross-built on the host: loads_binds_and_calls_probe and maps_a_title_dll_the_title_loads_itself pass. Windows-target clippy (with and without --all-features) and cargo xtask policy pass. Not run on native Windows, where the variable is unset and the test path is the one on main.

AI-assisted (Claude); measured on my machine, no game data shared.

**@⁠neonbyte1** on GitHub · 2026-11-26 15:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/3270) `neonbyte1:pr/hle-probe` → `main` · +5 −1 · 1 files · 1 commits · open Split out of #1218, as the maintainer triage asked, so that PR stays about the Wine test runner. `crates/victory-loader/tests/load_probe.rs` builds the `tests/fixtures/hle-probe` fixture by running `cargo` from inside the test. Under Wine, the test process can't start the host's `cargo`, which isn't a Windows executable. With this change, `VICTORY_HLE_PROBE`, when set, names an already-built `hle_probe.dll`, and the test uses it directly. When it's unset, nothing changes. One commit, one file; no fixture, runner or docs changes. **Tested** under Wine (vkd3d-proton, Linux, RTX 5090) with the fixture cross-built on the host: `loads_binds_and_calls_probe` and `maps_a_title_dll_the_title_loads_itself` pass. Windows-target clippy (with and without `--all-features`) and `cargo xtask policy` pass. Not run on native Windows, where the variable is unset and the test path is the one on `main`. _AI-assisted (Claude); measured on my machine, no game data shared._
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:19:34 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 15:28 UTC · original · approved these changes

Reviewed the diff and verified locally on Windows 11 x64:

  • Allowing VICTORY_HLE_PROBE to point to a prebuilt hle-probe fixture cleanly avoids nested cargo invocations in environments like Wine while keeping the default build path unchanged.
  • cargo test -p victory-loader --test load_probe -- --test-threads=1: 2 passed, 0 failed.
  • cargo clippy -p victory-loader --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-26 15:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/3270#pullrequestreview-6076759157) · **approved these changes** Reviewed the diff and verified locally on Windows 11 x64: - Allowing `VICTORY_HLE_PROBE` to point to a prebuilt `hle-probe` fixture cleanly avoids nested `cargo` invocations in environments like Wine while keeping the default build path unchanged. - `cargo test -p victory-loader --test load_probe -- --test-threads=1`: 2 passed, 0 failed. - `cargo clippy -p victory-loader --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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/3270/head:github-bot/gh-3270'
git switch 'github-bot/gh-3270'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3270'
git switch 'github-bot/gh-3270'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3270'
git switch 'github-bot/gh-3270'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3270'
git switch 'main'
git merge --squash 'github-bot/gh-3270'
git switch 'main'
git merge --ff-only 'github-bot/gh-3270'
git switch 'main'
git merge 'github-bot/gh-3270'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3270
No description provided.