Loader tests: build the probe fixture under CARGO_TARGET_TMPDIR #666
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!666
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/666/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?
@lameloball2813-ui on GitHub · 2026-11-24 06:24 UTC · original
lameloball2813-ui:fix/load-probe-target-dir→main· +5 −4 · 1 files · 1 commits · merged 2026-11-24 08:20 UTCload_probebuildstests/fixtures/hle-probewith--target-dir <workspace>/target/fixtures, a path fixed inside the checkout. It ignoresCARGO_TARGET_DIR, so the fixture lands in the checkout even when the rest of the build is redirected.That matters on Windows when the checkout's path is long. The fixture's build-script executables under
target/fixtures/debug/build/...go past MAX_PATH,link.exefails with LNK1104, andloads_binds_and_calls_probefails with "building hle-probe failed". PointingCARGO_TARGET_DIRat a short folder fixes every other crate but not this test.The fixture now builds into
CARGO_TARGET_TMPDIR(the folder cargo gives integration tests inside the outer target dir) underhle-probe. It is still its own target dir, so the outer build's lock is not an issue, and it followsCARGO_TARGET_DIRlike the rest of the build.Testing
Windows 11, a checkout with a long path,
CARGO_TARGET_DIRset to a short folder:cargo test -p victory-loader --test load_probefails with LNK1104 and "building hle-probe failed", andtarget/fixturesis created in the checkout.$CARGO_TARGET_DIR/tmp/hle-probe/debug/hle_probe.dll, and nothing is written to the checkout.Without
CARGO_TARGET_DIRthe fixture moves fromtarget/fixturestotarget/tmp/hle-probe, still under the ignoredtarget/. Nothing else in the tree refers totarget/fixtures. rustfmt, clippy andcargo xtask policyare clean.