Repository navigation
Conversation
Dukestar69
left a comment
There was a problem hiding this comment.
Reviewed the diff and verified locally on Windows 11 x64:
- Allowing
VICTORY_HLE_PROBEto point to a prebuilthle-probefixture cleanly avoids nestedcargoinvocations 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).
|
Windows 11,
Synthetic only. AI-assisted. |
|
@Jackster thanks for checking both paths. Removing the fixture's build tree and confirming it isn't recreated with AI-assisted (Claude); no game data shared. |
fuzeofficlal
left a comment
There was a problem hiding this comment.
Looks good. Clean and minimal way to reuse a prebuilt hle_probe.dll in environments where running nested cargo isn't possible.
Verified:
cargo xtask policyandcargo clippy --tests -p victory-loader -- -D warningspass cleanly.cargo test --locked -p victory-loader --test load_probepasses (2/2) both withVICTORY_HLE_PROBEunset (builds fixture) and withVICTORY_HLE_PROBEpointing to the prebuilthle_probe.dll(skips nested cargo build).
(Minor optional note): on Unix/Wine runners where an empty env var (VICTORY_HLE_PROBE=) can exist, .filter(|p| !p.is_empty()) would fall back to building rather than returning an empty PathBuf.
|
@fuzeofficlal thanks for the review. Took the optional note in AI-assisted (Claude); no game data shared. |
Split out of #1218, as the maintainer triage asked, so that PR stays about the Wine test runner.
crates/victory-loader/tests/load_probe.rsbuilds thetests/fixtures/hle-probefixture by runningcargofrom inside the test. Under Wine, the test process can't start the host'scargo, which isn't a Windows executable. With this change,VICTORY_HLE_PROBE, when set, names an already-builthle_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_probeandmaps_a_title_dll_the_title_loads_itselfpass. Windows-target clippy (with and without--all-features) andcargo xtask policypass. Not run on native Windows, where the variable is unset and the test path is the one onmain.AI-assisted (Claude); measured on my machine, no game data shared.