test(victory-gpu): pin clock::ticks_from_counter and ticks #585

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

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


What this changes

Pins clock::ticks_from_counter / clock::ticks in crates/victory-gpu/src/clock.rs with unit tests. No behaviour change. Refs #584

How it was tested

  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask — 455 passed in victory-gpu (7 new clock tests), 0 failed across all four crates
  • 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 arithmetic, platform-independent via counter_frequency())

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:5539113524 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/585). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:17:38Z. --- ## What this changes Pins `clock::ticks_from_counter` / `clock::ticks` in `crates/victory-gpu/src/clock.rs` with unit tests. No behaviour change. Refs #584 ## How it was tested - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` — 455 passed in victory-gpu (7 new clock tests), 0 failed across all four crates - [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 arithmetic, platform-independent via `counter_frequency()`) ## 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/585:upstream-pr/585'
git switch 'upstream-pr/585'

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/585'
git switch 'upstream-pr/585'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/585'
git switch 'upstream-pr/585'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/585'
git switch 'main'
git merge --squash 'upstream-pr/585'
git switch 'main'
git merge --ff-only 'upstream-pr/585'
git switch 'main'
git merge 'upstream-pr/585'
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!585
No description provided.