HLE tests: cover Windows path rules on every host #290
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/290"
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 Quat3rnion on 2026-11-24T02:04:12Z.
What
The plan asks for Linux-independent tests of the Windows path semantics so
the branches stay covered on CI. The rules lived inside the Windows-only
filesmodule, where Linux could not reach them. This moves the lexicaldecisions — drive letters and casing,
X:relative roots, slash handling,\\?\paths, UNC conversion, dot segments and the long-path threshold —into a host-independent
pathsmodule with seven tests.files.rskeepsthe host calls and delegates to the same functions; there is no behaviour
change.
An AI tool wrote part of this change.
Tested
cargo test --workspacewith PR #112's Linux build fix applied locally (not part of this PR): 171 passed, 0 failed, 3 ignored. The seven new path tests pass on Linux.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. The Windows-onlyfilestests were not run; there is no Windows host here.cargo xtask policypasses (151 files ok). No game files or data from them were added.Checklist
cargo xtask policypasses. No game files or data from them were added.Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:17:37Z.
Tested PR #290 at head
8b288a11bf341f849875ab3e6072e5402d65de17(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at8b288a11bf341f849875ab3e6072e5402d65de17.cargo test --locked -p victory-hle narrow_drive_detection_precedes_decoding— passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 87 filtered out; finished in 0.00s ); cases: modules::paths::tests::narrow_drive_detection_precedes_decoding.Behavior covered: Checks Windows drive detection before narrow-path decoding and covers drive-relative, verbatim, long and UNC path rewriting on the host.
Code: crates/victory-hle/src/modules/paths.rs, crates/victory-hle/src/modules/files.rs
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T13:16:36Z.
Review: APPROVED
Tested
e9caf0aon Windows 11, RTX 5070, MSVC:cargo test -p victory-hle94 passed, including the seven newpathstests.X:relative roots, separators,\?\and UNC forms, dot segments, the 248 long-path threshold) into a host-independentpathsmodule, withfiles.rsdelegating to it, keeps Windows behaviour identical, and the existingfilestests still pass. It also lets non-Windows CI cover those branches.paths.rs:184, "useless use offormat!". The other warning (xmem.rs:747) was already there.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:26:03Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-hle/src/modules/mod.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.