Repository navigation
docs: cmocka fail_msg Windows rule and scoped-green caveat (#1739) - #1895
Merged
Merged
Conversation
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.
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 sharedbuild/test-graph.json. It fails on a realfail_msg()call and ignores mentions in comments. On current master it passes. The only two remaining callers,test_rtmp_dbr_user_bitrateandtest_rtmp_send_thread_leak, arenot OS_WINDOWSin the graph. Thetest_video_output_planrepair is in master.This PR closes the last acceptance item, the contributor guidance.
docs/rust-port/testing-policy.mdnow says:fail_msg()in a test that Windows builds. Usefprintf(stderr, ...)and thenfail(). The check is a source check for this one symbol, not proof that a test links on Windows..ctest 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.