take the windows folder of test fixtures from the environment #1948
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1950"
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 imjustprism on 2026-11-25T01:38:58Z.
three 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
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:10:43Z.
Review: COMMENTED
Static review only: victory-hle/loader Windows-only paths; source review of the diff.
Take the Windows folder of test fixtures…: loader+hle test fixture path fix — loader tests broken on macOS anyway (pre-existing).
upstream-sync referenced this pull request2026-11-25 08:06:36 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:20:34Z.
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
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T11:09:13Z.
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.