Skip to content

test: characterize the obs-service settings, properties and identity functions (#1913) - #1914

Merged
zackees merged 4 commits into
masterfrom
test/1913-service-settings
Oct 23, 2026
Merged

zackees merged 4 commits into
masterfrom
test/1913-service-settings

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Refs #1913 (#1846 unit 8, slice 2). Tier 2 characterization before the port, like #1901 for slice 1.

test/cmocka/test_service_settings.c pins, through the public API: obs_service_get_display_name, obs_service_defaults (empty object without get_defaults), obs_get_service_properties (NULL data, defaults applied), name/type/id/type_data, signal/proc handlers, obs_service_properties (service settings applied), obs_service_update (merge, then update; settings change without the callback), obs_service_get_settings (same object, new ref) and obs_service_apply_encoder_settings (skipped when both are NULL or no callback). NULL service cases for each.

Same group setup as test_service_getters: it runs under the xvfb-run optional prefix and fails, not skips, when a display is set but obs_startup fails. Registered in test-graph.json; the core suite count in rust/obs-build/tests/native.rs goes to 144 (#1910 removes that pin; whichever lands second rebases).

Characterization of existing behaviour, so no RED/GREEN pair: it passes on the C today and must keep passing on the hybrid libobs after the port. Not user-visible, no features.md line.

@zackees

zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member Author

Coordinator:

  • Conflict: rebased onto master. The only conflict was the pinned core count in rust/obs-build/tests/native.rs, which test: stop pinning the core cmocka test count in the obs-build graph contract (#1908) #1910 removed. I kept master's version, and native_test_graph_replaces_legacy_utility_definitions passes locally.
  • Still failing, needs you: Tier 2 Linux fails to compile the new test:
    test/cmocka/test_service_settings.c:256:25: error: implicit declaration of function ‘obs_service_get_signal_handler’; did you mean ‘obs_source_get_signal_handler’?
    
    The public headers don't declare obs_service_get_signal_handler, and they can't be edited for this. The test has to reach the signal handler another way.

@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 8e2900d Oct 23, 2026
31 checks passed
@zackees
zackees deleted the test/1913-service-settings branch October 26, 2026 15:46
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