You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sanitize: unit tests ignore the test graph's working_directory, 6 fail in setup #2043
rust/tools/sanitize/sanitize.sh runs every cmocka test from $b/test/cmocka. 18 tests set working_directory: ${runtime} in test/cmocka/build/test-graph.json, because libobs finds its data (share/obs/libobs/*.effect) relative to the working directory. Under the sanitizer runner, 6 of them fail in group setup: obs_reset_video returns -1 after "Failed to find file 'default.effect'". The 6 are test_audio_capture_mix_race, test_encoder_video_reset, test_output_caption_codec, test_output_delay_restart, test_output_interleave_e2e and test_output_interleave_restart (ASan run 40056096027).
Fix: run each test from the WORKING_DIRECTORY that ctest reports (ctest --show-only=json-v1), falling back to the test directory.
Fixed by #2044 (merged). In ASan run 40059680965 the six setup failures pass, and test_group_active_refs and test_raw_output_video_reset pass too. Remaining: test_media_cached_paused_seek and test_media_packet_eof_leak (exit 2), the test_async_delay_audio flake (#838), and the two VST .so plugins the runner executes as if they were tests (follow-up).
Activity
zackees commentedon Oct 24, 2026
Claiming: sanitize.sh uses ctest's per-test working directory. PR today.
infra(sanitize): run each unit test from its ctest working directory (o…
zackees commentedon Oct 24, 2026
Fixed by #2044 (merged). In ASan run 40059680965 the six setup failures pass, and test_group_active_refs and test_raw_output_video_reset pass too. Remaining: test_media_cached_paused_seek and test_media_packet_eof_leak (exit 2), the test_async_delay_audio flake (#838), and the two VST .so plugins the runner executes as if they were tests (follow-up).