take the windows folder of test fixtures from the environment #1950
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!1950
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1950/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?
@imjustprism on GitHub · 2026-11-25 01:38 UTC · original
imjustprism:tests/system-folder-fixture→main· +15 −13 · 3 files · 1 commits · merged 2026-11-25 21:52 UTCthree tests copy version.dll out of a hard-coded
C:\Windows\System32to stand in for a dll a title ships. where windows is not installed inC:\Windowsthat copy fails before anything is tested. the failure quoted in #1881 forignores_dlls_in_current_folderis that copy, with os error 3 (path not found). the folder now comes fromSystemRoot.a fourth test loads urlmon by the same hard-coded folder to check that the host policy refuses it. with windows elsewhere the host would return null for that path whatever the policy says, so it takes the folder from
SystemRoottoo.only tests change. they pass here, and with
SystemRootpointed at a folder that does not exist the copy fails with the same os error 3.refs #1881
@Marvisak on GitHub · 2026-11-25 08:20 UTC · original
Automated triage for the maintainers.
Merge candidate.
Changes tests only. Three fixtures copied
version.dllfrom a hard-codedC:\Windows\System32, and these now build the path fromSystemRoot:ignores_dlls_in_current_folderincrates/victory-hle/tests/no_dll_planting.rs, and two tests incrates/victory-loader/tests/load_probe.rsthrough a newhost_dll(). The urlmon policy check inkernel.rs(mod tests) does the same. Without the urlmon change, on a machine where Windows isn't inC:\Windowsthat check would pass whatever the policy said.media.rstests onmainalready readSystemRootthe same way, and no other hard-coded path toC:\Windowsremains in a fixture. No production code changes. Relates to #1881.CI:
checkpasses.Generated by Claude Code
@cloph-dsp on GitHub · 2026-11-25 11:09 UTC · original
Independent local validation (Windows, Rust 1.100.0/MSVC, head
dee931a, no game data):cargo test --locked -p victory-hle --test no_dll_planting-> 1 test passed (ignores_dlls_in_current_folder), exit 0;cargo test --locked -p victory-loader --test load_probe-> 2 tests passed, exit 0;cargo test --locked -p victory-hle modules::kernel::tests-> 5 tests passed, exit 0 (the shorterkernel::testsfilter matched 0, so use the full path). SystemRoot is set in this Windows environment. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only tests). No game data used.