[PR #1267] TEST-PRESENT-HEADLESS: guard the GDI colour check on headless Windows #1299

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1267
Author: @delysidemanYT1
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: test-present-headless


📝 Commits (1)

  • 4190891 TEST-PRESENT-HEADLESS: guard the GDI colour check on headless Windows

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 runtime/test/d3d12_present_test.cpp (+11 -1)

📄 Description

Claimed in the coordination issue as: TEST-PRESENT-HEADLESS
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144288485

What changed

On Windows, skip the optional GDI screen-pixel assertion when Win32 successfully reports zero active display paths. Keep the Vulkan swapchain readback assertions and the existing checks on systems with an active display. This addresses the presentation-test observation in #504.

Verification

  • Passed: git diff --check and scripts/check_no_game_data.py for the changed file.
  • A Win32 API probe on Windows with two active display paths returned success and a path count of two.
  • The C++ target and the headless case were not run locally. A Windows run with no active display path and Vulkan validation enabled is still needed.

AI-assisted: yes (Codex). No game files used.


🔄 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/1267 **Author:** [@delysidemanYT1](https://github.com/delysidemanYT1) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test-present-headless` --- ### 📝 Commits (1) - [`4190891`](https://github.com/ubiquitarianism/leonida/commit/4190891754a2697ce2b20b4e17a37408cf066d54) TEST-PRESENT-HEADLESS: guard the GDI colour check on headless Windows ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/d3d12_present_test.cpp` (+11 -1) </details> ### 📄 Description Claimed in the coordination issue as: TEST-PRESENT-HEADLESS Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144288485 ## What changed On Windows, skip the optional GDI screen-pixel assertion when Win32 successfully reports zero active display paths. Keep the Vulkan swapchain readback assertions and the existing checks on systems with an active display. This addresses the presentation-test observation in #504. ## Verification - Passed: git diff --check and scripts/check_no_game_data.py for the changed file. - A Win32 API probe on Windows with two active display paths returned success and a path count of two. - The C++ target and the headless case were not run locally. A Windows run with no active display path and Vulkan validation enabled is still needed. AI-assisted: yes (Codex). No game files used. --- <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#1299
No description provided.