Skip to content

test: run the obs-main host header test only on Linux - #2186

Merged
zackees merged 1 commit into
masterfrom
fix/obs-main-host-test-linux-only
Oct 24, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/obs-main-host-test-linux-only

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Master has been red on macOS Tier 2 since #2170 (36505ad). test_frontend_obs_main_host is registered for every non-Windows OS, but on macOS obs-main-macos.hpp is the active host header, and compiling it as C fails:

frontend/utility/obs-main-macos.hpp:27:2: error: call to undeclared function 'InstallNSApplicationSubclass'
... isInBundle, blog, LOG_ERROR, throw, MacPermissionStatus

(merge-group run 40109122884, job 120918156623; it ejected #2171 and #2175 and blocks #2181.)

The test only asserts that neither host header defines anything, which is true only on Linux. This changes if(NOT OS_WINDOWS) to if(OS_LINUX), the same guard test_crash_log_upload.cmake uses. The test itself is unchanged.

RED: the merge-group run above. GREEN: macOS Tier 2 on this PR.

Coordinator fix for a red master; @zackees, feel free to replace it if you'd rather fix it differently.

On macOS obs-main-macos.hpp is active, so compiling it as C in the
cmocka test fails (InstallNSApplicationSubclass, blog, throw undeclared)
and macOS Tier 2 has been red since #2170 (merge-group run 40109122884).
@zackees
zackees enabled auto-merge October 24, 2026 16:42
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 3408da4 Oct 24, 2026
35 checks passed
@zackees
zackees deleted the fix/obs-main-host-test-linux-only branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant