Skip to content

sanitize: unit tests ignore the test graph's working_directory, 6 fail in setup #2043

Closed

Description

@zackees

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.

Activity

  1. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    Claiming: sanitize.sh uses ctest's per-test working directory. PR today.

  2. added
    claimed
    on Oct 24, 2026
  3. zackees commented on Oct 24, 2026

    @zackees
    MemberAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions