Pin fake_dll::normalise with unit tests #591

Closed
opened 2026-11-28 10:23:19 +00:00 by github-bot · 6 comments
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:21 UTC · original

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** on GitHub · 2026-11-28 10:21 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 10:23:19 +00:00
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:21 UTC · original

/claim

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:21 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7237842268) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 10:21 UTC · original

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

**@⁠github-actions[bot]** on GitHub · 2026-11-28 10:21 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7237844058) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #587` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:37 UTC · original

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

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:37 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7239351872) /release - done: PR #592 pins `fake_dll::normalise` with unit tests. Carried in my fork's `main` (69146296), gate green.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:41 UTC · original

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

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:41 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7239402217) /release - done: PR #592 pins `fake_dll::normalise` with unit tests. Carried in my fork's `main` (69146296), gate green.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 12:41 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 12:41 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7239403842) Released. This issue is free to claim.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 17:06 UTC · original

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

**@⁠AnastasisKon** on GitHub · 2026-11-28 17:06 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/587#issuecomment-7242753477) The tests this asks for are in the tree already (the mapping, the FXSAVE accessors, the clock scaling and `normalise` are all pinned); closing.
This discussion has been locked. Commenting is limited to contributors.
No description provided.