Skip to content

docs: cmocka fail_msg Windows rule and scoped-green caveat (#1739) - #1895

Merged
zackees merged 1 commit into
masterfrom
docs/1739-cmocka-windows-guidance
Oct 23, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/1739-cmocka-windows-guidance

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Fixes #1739.

The guard #1739 asked for already landed in #1743. ci/test_cmocka_windows_diagnostics.py (Fast Gate) scans every cmocka test source that Windows can build, using CMake guards and the shared build/test-graph.json. It fails on a real fail_msg() call and ignores mentions in comments. On current master it passes. The only two remaining callers, test_rtmp_dbr_user_bitrate and test_rtmp_send_thread_leak, are not OS_WINDOWS in the graph. The test_video_output_plan repair is in master.

This PR closes the last acceptance item, the contributor guidance. docs/rust-port/testing-policy.md now says:

  • Don't call fail_msg() in a test that Windows builds. Use fprintf(stderr, ...) and then fail(). The check is a source check for this one symbol, not proof that a test links on Windows.
  • A PR's green checks prove only the lanes its paths selected. A shared .c test selects Linux Tier 2 only.

Decision on #1739's "guidance alone or a guard" question: keep the existing source check plus this guidance. No new lanes or executables. Retire the check when the remaining C cmocka tests are ported. Documentation only, so no RED → GREEN.

@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 871d7d0 Oct 23, 2026
30 checks passed
@zackees
zackees deleted the docs/1739-cmocka-windows-guidance branch October 26, 2026 15:42
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.

bug: CI: repeated cmocka diagnostic link failure escapes the single-test guard

1 participant