Tests: allow prebuilt HLE probe DLL via VICTORY_HLE_PROBE_DLL #1630
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T20:06:53Z.
Closes #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.Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T22:20:04Z.
Review: COMMENTED
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
Tests: VICTORY_HLE_PROBE_DLL and GNU delay-load support in the loader probe test harness (load_probe.rs + hle-probe build.rs). Makes the HLE probe testable outside the standard Windows CI path — useful for exactly the kind of cross-platform verification gap we keep hitting. Note: victory-loader tests are currently broken on macOS on main (pre-existing), so this could not be run here.
Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T22:13:42Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:32:11Z.
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
[PR #1631] Tests: support VICTORY_HLE_PROBE_DLL and GNU delayload in hle-probeto [PR #1631] Tests: allow prebuilt HLE probe DLL via VICTORY_HLE_PROBE_DLLImported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T04:42:44Z.
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.Imported from Marvisak/VIctory. Originally posted by astrosteveo on 2026-11-25T05:44:00Z.
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]>
upstream-sync referenced this pull request2026-11-25 08:06:32 +00:00
upstream-sync referenced this pull request2026-11-25 13:03:01 +00:00
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T02:32:26Z.
Independent CPU-only verification on Windows (Rust 1.100.0/MSVC, worktree-local
CARGO_TARGET_DIR,CARGO_BUILD_JOBS=2, no game data).ee229b3, merge basef3578e3.cargo test --locked -p victory-loader --test load_probe -- probe_dll_override_validates_file_paths --exact --test-threads=1 --quiet->test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out.git diff --check f3578e3 HEAD-> exit 0.f3578e3(git grep -c ... crates/victory-loader/tests/load_probe.rs-> exit 1).Only the synthetic environment-variable path validation test was replayed; no real prebuilt DLL or game content was used. GPU/driver: N/A (CPU-only loader test). AI-assisted (Hy4 flash). No game data, assets, extracted shaders or DRM involved.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.