Loader tests: skip the load_probe cargo build under Wine/Proton #227
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!227
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/227/head"
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?
@SkippySteve on GitHub · 2026-11-24 01:38 UTC · original
SkippySteve/victory-pr-load-probe-wine→main· +36 −5 · 1 files · 1 commits · closed without mergingload_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.
@MisaXz on GitHub · 2026-11-24 02:27 UTC · original
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
@Bushyon on GitHub · 2026-11-24 02:27 UTC · original
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.@SkippySteve on GitHub · 2026-11-24 02:30 UTC · original
Folded into #232 (same commit cherry-picked onto that branch). Closing as superseded.
Pull request closed