[PR #2139] title_window, xgameruntime_offline: skip what needs a desktop when there is no interactive window station #2144

Open
opened 2026-11-26 21:20:11 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2139
Author: @qhukz13
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: cont/tests-session0-skip


📝 Commits (1)

  • dd47f60 title_window, xgameruntime_offline: skip what needs a desktop when there is no interactive window station

📊 Changes

3 files changed (+21 additions, -7 deletions)

View changed files

📝 runtime/CMakeLists.txt (+1 -0)
📝 runtime/test/title_window_test.cpp (+5 -0)
📝 runtime/test/xgameruntime_offline_test.cpp (+15 -7)

📄 Description

Item: TEST-SESSION0-DESKTOP-SKIP

Problem

Run over OpenSSH or as a service, a process lives in session 0, whose window station is not interactive. Two runtime tests fail there for reasons that are not runtime bugs:

  • title_window: no window is ever visible, so find_title_window has nothing to pick and the test stops at title_window_test.cpp:85 (found == windows.title).
  • xgameruntime_offline and xgameruntime_offline_hdr: PowerSetRequest(PowerRequestDisplayRequired) answers ERROR_NOT_SUPPORTED (50) in session 0, so XDisplayAcquireTimeoutDeferral acquires a display power request handle and concurrent display deferrals have distinct handles fail. The system and away-mode requests do work there (measured with a small PowerShell probe of the same calls over SSH).

From a desktop session all three pass. #1217 already notes the SSH difference for xgameruntime_offline.

Change

  • title_window_test: returns 77 (SKIP, with a line saying why) when has_interactive_window_station() is false; SKIP_RETURN_CODE 77 on the test.
  • xgameruntime_offline_test: when the first acquire answers HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED) and there is no interactive window station, it checks that no handle was left and prints a SKIP line for the two handle checks; everywhere else they are checked as before. The rest of the test is unchanged.
  • Both use runtime/test/window_station.h's has_interactive_window_station() (the WSF_VISIBLE flag), as the DXGI and present tests already do. No runtime change.

Testing

Windows 10 Pro 19045, GTX 1050 Ti, NVIDIA 582.66, MSVC RelWithDebInfo, base 5fab93967, 3 runs each way:

  • Over OpenSSH (session 0): title_window Skipped, xgameruntime_offline and xgameruntime_offline_hdr pass (on main all three fail there).
  • In an RDP desktop session on the same machine: all three pass with every check run.
  • python -I scripts/check_no_game_data.py on the changed files: clean.

AI-assisted (Claude Code, Opus 5.5).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2139 **Author:** [@qhukz13](https://github.com/qhukz13) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `cont/tests-session0-skip` --- ### 📝 Commits (1) - [`dd47f60`](https://github.com/ubiquitarianism/leonida/commit/dd47f60c4f69e23fdc821b6ee44a9deea2c3c81d) title_window, xgameruntime_offline: skip what needs a desktop when there is no interactive window station ### 📊 Changes **3 files changed** (+21 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+1 -0) 📝 `runtime/test/title_window_test.cpp` (+5 -0) 📝 `runtime/test/xgameruntime_offline_test.cpp` (+15 -7) </details> ### 📄 Description Item: `TEST-SESSION0-DESKTOP-SKIP` ### Problem Run over OpenSSH or as a service, a process lives in session 0, whose window station is not interactive. Two runtime tests fail there for reasons that are not runtime bugs: - `title_window`: no window is ever visible, so `find_title_window` has nothing to pick and the test stops at `title_window_test.cpp:85` (`found == windows.title`). - `xgameruntime_offline` and `xgameruntime_offline_hdr`: `PowerSetRequest(PowerRequestDisplayRequired)` answers `ERROR_NOT_SUPPORTED` (50) in session 0, so `XDisplayAcquireTimeoutDeferral acquires a display power request handle` and `concurrent display deferrals have distinct handles` fail. The system and away-mode requests do work there (measured with a small PowerShell probe of the same calls over SSH). From a desktop session all three pass. #1217 already notes the SSH difference for `xgameruntime_offline`. ### Change - `title_window_test`: returns 77 (SKIP, with a line saying why) when `has_interactive_window_station()` is false; `SKIP_RETURN_CODE 77` on the test. - `xgameruntime_offline_test`: when the first acquire answers `HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)` **and** there is no interactive window station, it checks that no handle was left and prints a SKIP line for the two handle checks; everywhere else they are checked as before. The rest of the test is unchanged. - Both use `runtime/test/window_station.h`'s `has_interactive_window_station()` (the `WSF_VISIBLE` flag), as the DXGI and present tests already do. No runtime change. ### Testing Windows 10 Pro 19045, GTX 1050 Ti, NVIDIA 582.66, MSVC RelWithDebInfo, base `5fab93967`, 3 runs each way: - Over OpenSSH (session 0): `title_window` Skipped, `xgameruntime_offline` and `xgameruntime_offline_hdr` pass (on main all three fail there). - In an RDP desktop session on the same machine: all three pass with every check run. - `python -I scripts/check_no_game_data.py` on the changed files: clean. AI-assisted (Claude Code, Opus 5.5). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#2144
No description provided.