Skip to content

test: Extract and characterize output name getter before Rust swap #5300

Closed

Description

@zackees

Phase 6 C-only prerequisite for the later obs-output Rust swap of obs_output_get_name, currently in libobs/obs-output.c.h:318-321.

Mirror merged #5044: first add focused actual-library cmocka characterization of NULL return and exact LOG_DEBUG diagnostic; output-owned borrowed name pointer with no logging, repeated reads, a generated name for an empty input, and the current context-name pointer after replacement (outputs have no public name setter). Preserve existing context-name tests and public headers. Then extract the function verbatim into libobs/obs-output-get-name.c.h, sorted in the core-output unity group, without behavior changes or Rust implementation. Register the test in the canonical graph and tests.d, and preserve every native source inventory.

Acceptance: characterization passes before and after extraction against C-reference and hybrid libraries; extraction/source inventory checks, focused native registration and full lint. File the Rust swap as a separate follow-up. No new link-support files, workflows or WebSocket edits. Open-PR searches and #5280/#5246 diffs show no changes to this getter. #5044 establishes this is extraction plus characterization, not a direct swap.

Activity

  1. added
    port
    ready
    P2
    size:S
    on Nov 19, 2026
  2. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Claiming: output name getter prerequisite in pool slot obs-studio4; branch test/5300-output-get-name. 1. Mirror #5044 with focused actual-library NULL diagnostic, borrowed pointer, generated-name and rename characterization. 2. Extract the function verbatim and register its canonical graph/native source inventories without support-file changes. 3. Validate before/after, run full lint once, publish and file the separate Rust swap. First PR expected this session.

  3. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    Done in #5306 (merged): obs_output_get_name is extracted to libobs/obs-output-get-name.c.h with its characterization test. The Rust swap is #5302.

  4. moved this from In progress to Done in obs-rust Multiviewon Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions