Pin fake_dll::normalise with unit tests #587

Closed
opened 2026-11-28 10:21:21 +00:00 by AnastasisKon · 6 comments
AnastasisKon commented 2026-11-28 10:21:21 +00:00 (Migrated from github.com)
Contributor

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


The fake system-DLL module name normaliser in crates/victory-hle/src/host_posix/fake_dll.rs has no tests.

normalise(path) maps what title start-up code passes to GetModuleHandleW to the key the fake modules are stored under: file name only (both \ and / separators), lower-cased, .dll appended when there is no extension.

Pin it with unit tests: full Windows paths, bare names, names with and without extension, mixed case, forward slashes, and a name whose last component has no dot. Pure string function, runs on the macOS host. No behaviour change.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6663335684 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:21:21Z. --- The fake system-DLL module name normaliser in `crates/victory-hle/src/host_posix/fake_dll.rs` has no tests. `normalise(path)` maps what title start-up code passes to `GetModuleHandleW` to the key the fake modules are stored under: file name only (both `\` and `/` separators), lower-cased, `.dll` appended when there is no extension. Pin it with unit tests: full Windows paths, bare names, names with and without extension, mixed case, forward slashes, and a name whose last component has no dot. Pure string function, runs on the macOS host. No behaviour change.
AnastasisKon commented 2026-11-28 10:21:23 +00:00 (Migrated from github.com)
Author
Contributor

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


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7237842268 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7237842268). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:21:23Z. --- /claim
github-actions[bot] commented 2026-11-28 10:21:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T10:21:32Z.


Claimed by @AnastasisKon. Open a draft pull request with Refs #587 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7237844058 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7237844058). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T10:21:32Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #587` in its description within 24 hours, or the claim expires.
AnastasisKon commented 2026-11-28 12:37:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:37:10Z.


/release - done: PR #588 pins fake_dll::normalise with unit tests. Carried in my fork's main (69146296), gate green.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239351872 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7239351872). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T12:37:10Z. --- /release - done: PR #588 pins `fake_dll::normalise` with unit tests. Carried in my fork's `main` (69146296), gate green.
AnastasisKon commented 2026-11-28 12:41:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:41:37Z.


/release - done: PR #588 pins fake_dll::normalise with unit tests. Carried in my fork's main (69146296), gate green.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239402217 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7239402217). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T12:41:37Z. --- /release - done: PR #588 pins `fake_dll::normalise` with unit tests. Carried in my fork's `main` (69146296), gate green.
github-actions[bot] commented 2026-11-28 12:41:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:41:46Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239403842 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7239403842). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T12:41:46Z. --- Released. This issue is free to claim.
AnastasisKon commented 2026-11-28 17:06:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T17:06:01Z.


The tests this asks for are in the tree already (the mapping, the FXSAVE accessors, the clock scaling and normalise are all pinned); closing.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7242753477 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7242753477). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T17:06:01Z. --- The tests this asks for are in the tree already (the mapping, the FXSAVE accessors, the clock scaling and `normalise` are all pinned); closing.
Sign in to join this conversation.
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#587
No description provided.