Skip to content

infra(sanitize): run each unit test from its ctest working directory - #2044

Merged
zackees merged 1 commit into
masterfrom
infra/sanitize-test-workdir
Oct 24, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/sanitize-test-workdir

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #2043

sanitize.sh ran every cmocka test from $b/test/cmocka and ignored the test graph's working_directory. Six tests then failed in group setup because libobs couldn't find default.effect. The runner now takes each test's WORKING_DIRECTORY from ctest --show-only=json-v1 (via jq), for ASan, TSan and valgrind, and falls back to the old directory.

RED (recorded locally): ASan run 40056096027 has obs_reset_video -1 in test_output_caption_codec, test_output_interleave_e2e, test_output_delay_restart, test_output_interleave_restart, test_encoder_video_reset and test_audio_capture_mix_race. GREEN: the ASan run on this branch, linked below. I tested the jq filter on synthetic ctest JSON. ./lint passes. Tooling only, so Tiers 1–4 don't apply.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

@zackees
zackees enabled auto-merge October 24, 2026 03:47
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit b3912c2 Oct 24, 2026
32 checks passed
@zackees
zackees deleted the infra/sanitize-test-workdir branch October 26, 2026 15: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.

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

1 participant