Skip to content

test: Rewrite the obs_output_set_video_encoder2 stand-ins to the fixed caller (#2500) - #2507

Merged
zackees merged 1 commit into
masterfrom
test/2500-encoder2-standins
Oct 26, 2026
Merged

zackees merged 1 commit into
masterfrom
test/2500-encoder2-standins

Conversation

@zackees

@zackees zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member

Fixes #2500

#2495 made obs_output_set_video_encoder2() decide the caption track and the preferred size on the stored slot. The stand-in copies of the caller still decided on the argument, so their "characterized, not endorsed" cases described code that no longer exists. They now follow the fixed caller:

  • test/cmocka/test_output_slots_steps.c (Tier 2): e2e_video_replace and e2e_video_preferred_size.
  • rust/obs-output/tests/output/output_slots.rs (Tier 1): the same two cases.
  • rust/obs-output/tests/output/output_slots_parity.rs (Tier 3): the stand-in sequences.

The two cases now expect the fixed result: an encoder whose reference fails gets no caption track, and clearing index 0 sets no size.

The maintainer signed off on editing the existing C test (#2500, as for #2289).

Local: the 32 Rust output_slots tests pass (obs-tests-core). Tier 2 passed 555/555 in both libobs builds, including test_output_slots_steps and test_output_slot_stored_encoder. ./lint passes. This is a test-only change, so there is no separate RED commit: the updated cases encode #2495's behaviour.

…d caller (#2500)

The stand-in copies in test_output_slots_steps.c (Tier 2), output_slots.rs
(Tier 1) and output_slots_parity.rs (Tier 3) still decided the caption
track and the preferred size on the argument, as before #2495. They now
decide on the stored slot: an encoder whose reference fails gets no
caption track, and clearing index 0 sets no size. Maintainer sign-off for
the C test edit was given for #2500.
@zackees
zackees enabled auto-merge October 26, 2026 17:05
@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Coordinator review and sign-off (as on #2289 and #2495): the changed assertions in test_output_slots_steps.c and the Tier 1 and Tier 3 copies only replace the old 'characterized, not endorsed' expectations, no caption track and no NULL size for an empty slot, with what the fixed caller does after #2495. That's the follow-up #2500 asked for. They now agree with test_output_slot_stored_encoder against the real libobs. Queuing.

@zackees
zackees added this pull request to the merge queue Oct 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 26, 2026
@zackees
zackees added this pull request to the merge queue Oct 26, 2026
Merged via the queue into master with commit da22e39 Oct 26, 2026
36 checks passed
@zackees
zackees deleted the test/2500-encoder2-standins branch October 26, 2026 17:45
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.

test: Retire the obs_output_set_video_encoder2 stand-ins that pin pre-#2495 behaviour

1 participant