Handle unsupported display deferrals in the HLE test #1125

Manually merged
github merged 1 commit from gh-pr/1125/head into gh-pr/1125/base 2026-11-26 04:20:37 +00:00
Owner

@⁠EatCodeSleep2 on GitHub · 2026-11-24 15:58 UTC · original
EatCodeSleep2:fix/display-deferral-test-727 → main · +9 −6 · 1 files · 1 commits · merged 2026-11-25 00:21 UTC

Summary

  • Let the display deferral test accept Windows returning ERROR_NOT_SUPPORTED on hosts that cannot honor a display power request.
  • Verify that this result leaves the handle null. A successful acquire still has to return a handle that the test closes.

This is the test-only approach discussed in #727. AI-assisted. Uses no game files.

Testing

cargo test --locked -p victory-hle --lib modules::display::tests::sdr_and_display_deferrals -- --exact

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 15:58 UTC · [original](https://github.com/Marvisak/VIctory/pull/1125) `EatCodeSleep2:fix/display-deferral-test-727` → `main` · +9 −6 · 1 files · 1 commits · merged 2026-11-25 00:21 UTC ## Summary - Let the display deferral test accept Windows returning `ERROR_NOT_SUPPORTED` on hosts that cannot honor a display power request. - Verify that this result leaves the handle null. A successful acquire still has to return a handle that the test closes. This is the test-only approach discussed in #727. AI-assisted. Uses no game files. ## Testing `cargo test --locked -p victory-hle --lib modules::display::tests::sdr_and_display_deferrals -- --exact`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:36 +00:00
github manually merged commit efe102edac into gh-pr/1125/base 2026-11-26 04:20:37 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 18:01 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at efe102e: cargo test -p victory-hle passes, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1125#issuecomment-7140049855) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at efe102e: `cargo test -p victory-hle` passes, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1125
No description provided.