Repository navigation
Loader tests: skip the load_probe cargo build under Wine/Proton - #227
Closed
SkippySteve wants to merge 1 commit into
Closed
SkippySteve wants to merge 1 commit into
SkippySteve wants to merge 1 commit into
Conversation
The test builds its fixture by running the cargo that built it. A test exe cross-built on Linux and run by Wine or Proton cannot start that host program (Invalid handle), so the test failed for a reason that has nothing to do with the loader. Under Wine it now skips with a message, unless VICTORY_HLE_PROBE_DLL names a prebuilt hle_probe.dll, which it loads instead (on Windows too).
|
Test report on real Windows (the description covers Wine and says Windows is unchanged). Tested
Not tested
AI use
|
|
Tested Setup: Fedora 44, RX 7800 XT (RADV 26.2.6). Proton Experimental 11.0-20261112 (
For the prebuilt case I built the fixture with |
4 of 5 tasks
Author
|
Folded into #232 (same commit cherry-picked onto that branch). Closing as superseded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.