test(victory-hle): pin fake_dll::normalise DLL name normalisation #588

Open
AnastasisKon wants to merge 1 commit from upstream-pr/588 into main
AnastasisKon commented 2026-11-28 10:24:29 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:24:29Z.


What this changes

Pins fake_dll::normalise in crates/victory-hle/src/host_posix/fake_dll.rs with unit tests: full Windows paths (both separators), bare names gaining .dll, lower-casing, and dots in directory names not counting as the file extension. No behaviour change. Refs #587

How it was tested

  • cargo test --target x86_64-apple-darwin -p victory-hle — 343 passed (5 new fake_dll tests), 0 failed, run under Rosetta on the arm64 host
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask (host arm64) — all ok
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — clean (RC=0)
  • cargo xtask policy — 404 files ok
  • Not needed (no game run; pure string function)

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — n/a, no behaviour change
  • New diagnostics are behind a VICTORY_* variable and documented — n/a, no new diagnostics
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5539161085 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/588). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:24:29Z. --- ## What this changes Pins `fake_dll::normalise` in `crates/victory-hle/src/host_posix/fake_dll.rs` with unit tests: full Windows paths (both separators), bare names gaining `.dll`, lower-casing, and dots in directory names not counting as the file extension. No behaviour change. Refs #587 ## How it was tested - [x] `cargo test --target x86_64-apple-darwin -p victory-hle` — 343 passed (5 new fake_dll tests), 0 failed, run under Rosetta on the arm64 host - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` (host arm64) — all ok - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — clean (RC=0) - [x] `cargo xtask policy` — 404 files ok - [x] Not needed (no game run; pure string function) ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — n/a, no behaviour change - [x] New diagnostics are behind a `VICTORY_*` variable and documented — n/a, no new diagnostics
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/588:upstream-pr/588'
git switch 'upstream-pr/588'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/588'
git switch 'upstream-pr/588'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/588'
git switch 'upstream-pr/588'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/588'
git switch 'main'
git merge --squash 'upstream-pr/588'
git switch 'main'
git merge --ff-only 'upstream-pr/588'
git switch 'main'
git merge 'upstream-pr/588'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!588
No description provided.