Repository navigation
test: Register the VLC channel order test only for a real vlc-video module - #254
Merged
Merged
Conversation
…odule With ENABLE_VLC=OFF, add_core_module() leaves a dummy custom target named vlc-video behind. The registration only checked TARGET vlc-video, so it still evaluated $<TARGET_FILE:vlc-video> and CMake's generate step failed: any unit-test build without the VLC plugin stopped configuring after obs-rust#252. Check that vlc-video is a MODULE_LIBRARY before registering the test. Fixes obs-rust#253. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
zackees
approved these changes
Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Configuring with unit tests on and the VLC plugin off (
-DENABLE_UNIT_TESTS=ON -DENABLE_VLC=OFF) fails since #252:add_core_module()leaves a dummy custom target namedvlc-videowhen the module is disabled, so the registration'sTARGET vlc-videocheck passes and$<TARGET_FILE:vlc-video>breaks the generate step. The test is now registered only whenvlc-videois aMODULE_LIBRARY.Motivation and Context
Fixes #253 (regression from #252, my VLC channel order fix).
How Has This Been Tested?
ENABLE_VLC=OFFbuild tree, unit tests on: master fails to generate (Target "vlc-video" is not an executable or library); with this change it configures and builds in both lanes (ENABLE_RUST_LIBOBSOFF and ON), and the full ctest passes (85 of 85 in each lane, with the test correctly absent).ENABLE_VLC=ONbuild tree: the test is still registered and passes with libVLC 3.0.23 under a private Xvfb.ci/test_registration.pyare clean.Types of changes
Checklist:
🤖 Generated with Claude Code