Skip to content

Measure and enforce MC/DC coverage with GCC and CTest - #66

Merged
rigtorp merged 1 commit into
masterfrom
v2/04-mcdc
Nov 18, 2026
Merged

rigtorp merged 1 commit into
masterfrom
v2/04-mcdc

Conversation

@rigtorp

@rigtorp rigtorp commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

coverage preset
  -> clear the previous profile
  -> run the instrumented MPMCQueueTest
  -> check MPMCQueue.h with gcov -g

Combine condition outcomes across template instantiations. Fail on uncovered
lines or outcomes. Run the preset with GCC 14 in CI and exercise both the
blocking and try-operation paths under contention.

Evidence

  • Before CTest checked behavior without measuring condition outcomes.
  • After In a clean checkout, GCC 14.4 reported 28/28 MC/DC condition
    outcomes and all three CTest steps passed. All pre-commit hooks passed.

Merge Danger

Door Two-way. A revert removes the coverage preset and CI job.

Blast radius Test and CI coverage. The optional preset requires GCC 14
or newer, matching gcov, Python, and a single-config CMake generator.

@rigtorp
rigtorp merged commit 77ba089 into master Nov 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant