Tests: allow prebuilt HLE probe DLL via VICTORY_HLE_PROBE_DLL #1631
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1631
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1631"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fuzeofficlal on GitHub · 2026-11-24 20:06 UTC · original
fuzeofficlal:feat/test-hle-probe-env-and-gnu-delayload-989→main· +44 −2 · 1 files · 1 commits · openCloses #989.
Summary
VICTORY_HLE_PROBE_DLLpath resolution intoprobe_dll_override(Option<&OsStr>)incrates/victory-loader/tests/load_probe.rssobuild_probe()uses a prebuilt probe DLL directly when set, falling back to buildingtests/fixtures/hle-probevia Cargo.Testing
probe_dll_override_validates_file_pathscovering unset, empty, valid file, missing file, and directory override inputs.cargo test -p victory-loader --locked,cargo clippy, andcargo xtask policy.@acetonahard-code on GitHub · 2026-11-24 22:13 UTC · original
Tested on Windows 11 with the repo toolchain, merged into current
main(70564ae):cargo test -p victory-loadermainmain+ this PRmain,--all-featuresmain+ this PR,--all-featurescargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
@Marvisak on GitHub · 2026-11-25 03:32 UTC · original · edited 2026-11-26 01:19 UTC
Automated triage for the maintainers.
Merge candidate (a recommendation to look, not an approval). The new head is the same test-only change rebased onto current
main:build_probe()incrates/victory-loader/tests/load_probe.rsuses a prebuilt fixture DLL fromVICTORY_HLE_PROBE_DLLwhen it is set and non-empty, as #989 asks, and otherwise builds the fixture with cargo as before.probe_dll_overriderefuses a missing file or a directory, and is tested in-process withtempfile, already a dev-dependency of the crate. Nobuild.rsor process changes remain, and the Wine run in this thread shows the override working.The branch merges cleanly. CI:
checkpassing.Generated by Claude Code
@fuzeofficlal on GitHub · 2026-11-25 04:42 UTC · original
Rebased onto
940d32f(5294314c) and dropped both thetests/fixtures/hle-probe/build.rschange and the child-process re-execution inload_probe.rs. The branch now touches onlycrates/victory-loader/tests/load_probe.rs, factoringVICTORY_HLE_PROBE_DLLresolution intoprobe_dll_override(Option<&OsStr>)and testing it directly in-process.@astrosteveo on GitHub · 2026-11-25 05:44 UTC · original
A run on the kind of host this helps (Arch Linux, Wine 11.22, no Rust toolchain inside Wine),
5294314merged ontomain940d32f:cargo test -p victory-loader --test load_probeunder Wineloads_binds_and_calls_probeVICTORY_HLE_PROBE_DLLset to an MSVC-builthle_probe.dllx86_64-pc-windows-gnutest build, the same DLLSo with the variable the test runs under Wine, and it found the DLL from a
Z:\path. I built the DLL withcargo xwin build --manifest-path tests/fixtures/hle-probe/Cargo.toml --target x86_64-pc-windows-msvc. The fixture does not build forx86_64-pc-windows-gnuhere, so there was no GNU DLL to try. I have not looked into the abort; it only happens with the GNU test executable.Co-Authored-By: Claude Opus 5.5 <[email protected]>
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.