Loader tests: skip the load_probe cargo build under Wine/Proton #227
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/227"
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 SkippySteve on 2026-11-24T01:38:07Z.
load_probe::loads_binds_and_calls_probebuilds its fixture by spawning thecargothat built the test (env!("CARGO")). When the Windows test exe is cross-built on Linux (cargo xwin test) and run by Wine or Proton, that path is a Linux program the guest cannot start, so the test fails withrunning cargo: ... Invalid handle.onmainand on every PR. I hit this while testing #214 (see my comment there). It is a red test that has nothing to do with the change being tested.Change (test file only)
VICTORY_HLE_PROBE_DLL: if set, the test loads that prebuilthle_probe.dlland does not build one. This works on Windows too.wine_get_version, the same check as invictory-hle/src/modules/xmem.rs) with no prebuilt DLL: the test prints askipping: ...line and returns.Wine/Proton contributor workflow
Evidence
Run by UMU-Proton 11.0-2e's
winewith a new prefix, on Linux:tests/load_probe.rsmain(d2a4bae)running cargo: Os { code: 6, ... "Invalid handle." })VICTORY_HLE_PROBE_DLLsetcargo xwin clippy -p victory-loader --all-targets --target x86_64-pc-windows-msvc -- -D warnings: clean.cargo xtask policy: 151 files ok. Formatted with rustfmt.cargo test -p victory-loader:load_probe.rsis#![cfg(windows)], so it is unaffected. The 3prepare::testsfailures there are already onmain: they parse their own test binary, which is ELF on Linux. This PR does not change them.Not tested: a real Windows machine (that code path is the same as before, apart from the env check). No game assets.
Imported from Marvisak/VIctory. Originally posted by MisaXz on 2026-11-24T02:27:07Z.
Test report on real Windows (the description covers Wine and says Windows is unchanged).
Tested
e766c61(based2a4bae):cargo test --workspace --no-fail-fast: 264 passed, 0 failed, 4 ignored (same asmainhere).cargo test -p victory-loader --test load_probe -- --nocapture, no env var: 2 passed, no skip line printed, so the nested cargo build still runs here.VICTORY_HLE_PROBE_DLLset to ahle_probe.dllbuilt withcargo build --manifest-path tests/fixtures/hle-probe/Cargo.toml --target-dir target/fixtures: 2 passed.Not tested
AI use
Imported from Marvisak/VIctory. Originally posted by Bushyon on 2026-11-24T02:27:51Z.
Tested
e766c61under Wine on Linux, in both modes.Setup: Fedora 44, RX 7800 XT (RADV 26.2.6). Proton Experimental 11.0-20261112 (
wine-11.0), its own prefix. Debug test binaries cross-built forx86_64-pc-windows-msvcwith clang-cl, lld-link and xwin (rustc 1.98.1).cargo test -p victory-loader --test load_probe:maind2a4baeloads_binds_and_calls_probe, panics atload_probe.rs:34,running cargo: ... Invalid handle.)skipping: under Wine ...lineVICTORY_HLE_PROBE_DLLsetFor the prebuilt case I built the fixture with
cargo build --manifest-path tests/fixtures/hle-probe/Cargo.toml --target x86_64-pc-windows-msvc(same toolchain) and passed its path as aZ:\...Windows path.Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:30:21Z.
Folded into #232 (same commit cherry-picked onto that branch). Closing as superseded.
Pull request closed