Handle unsupported display deferrals in the HLE test #1125
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1125"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by EatCodeSleep2 on 2026-11-24T15:58:47Z.
Summary
ERROR_NOT_SUPPORTEDon hosts that cannot honor a display power request.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 -- --exactImported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:01:27Z.
Review: APPROVED
Tested merged cleanly onto
main(ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-hle: 94 passed, 0 failed (plusno_dll_planting: 1 passed)cargo clippy -p victory-hle --all-targets: 0 warningscargo xtask policy: okClean handling of unsupported display deferrals in the HLE test suite. Approving.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:37Z.
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-hlepasses, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T19:14:40Z.
Review: APPROVED
Tested
efe102eon Windows 11, RTX 5070, MSVC: builds,cargo test --workspace --no-fail-fast607 passed, 0 failed (on our fork main).sdr_and_display_deferralspasses here through theS_OKarm.NOT_SUPPORTEDis0x80070032, i.e.HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED). That's whatacquire'sPowerSetRequestfailure path returns throughlast_error(), so the new arm matches the real failure, and the handle stays null on that path.Merged into our fork's main.
AI-assisted (Claude Code).