Repository navigation
tests: pass the placed-buffer controls only on their stated failure - #2185
Merged
Merged
Conversation
startup_placed_buffer_range_{region_only,walk_only}_control were
WILL_FAIL tests whose mutated run exited 1 for the stated failure and 0
otherwise. CTest's WILL_FAIL inverts every nonzero exit, so a crash or
an unrelated failure also passed them (the same mapping R0Y00#2156's review
found). The controls are now ordinary tests: the region-only run exits 0
only when decisions differ in the partly committed cases and nowhere
else, the walk-only run only when the case-9 call count is its sole
failure, and 1 otherwise. A refused allocation or mapping is still a
capability skip (77).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tedin7
reviewed
Nov 25, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head 6c44748cd93b2d03b003eacccbbed8dbcab159b5: 0 P1, 0 P2.
Findings:
- The two negative controls change from WILL_FAIL tests to ordinary tests. They exit 0 only when the failure pattern matches the stated reason (region-only: partly-committed cases differ and nothing else; walk-only: only the call-count case fails). A crash or any other failure now fails the test instead of passing as "expected failure". The
return stated ? 0 : 1flip, the CMake properties, the test header comment and docs/startup-runtime.md all agree. Capability skip (77) is kept. - Clean-room: tests and docs only, no source or vendor material. No other open PR touches this test.
Commands executed locally:
python3 tests/docs_links_check.py-> pass (18 files, 402 links)python3 tests/bidi_controls_check.py-> pass (1464 files)git diff --check origin/main...HEAD-> cleanx2w_pipe.py win2025 2185 --wait 3600-> Debug and Release /O2: startup_placed_buffer_range, _region_only_control, _walk_only_control 3/3 passed- Mutation (via
--patch, Debug): flippedreturn stated ? 0 : 1tostated ? 1 : 0in the control branch -> both controls Failed (2 of 3 failed), main test still passed. Mutation reverted. - CI
Build and test on Windows: SUCCESS.
AI-assisted; commands listed were executed locally.
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.
Problem
startup_placed_buffer_range_region_only_controlandstartup_placed_buffer_range_walk_only_control(#1766) wereWILL_FAILtests. Their mutated run exited 1 for the stated failure and 0 otherwise. CTest'sWILL_FAILinverts every nonzero exit, so a crash or an unrelated failure also passed them. This is the same mapping the #2156 review found in that PR's drop control.Change
The controls are now ordinary tests:
--mutate region-onlyexits 0 only when decisions differ in the partly committed cases and nowhere else.--mutate walk-onlyexits 0 only when the case-9 call count is its sole failure.The main check and the cases are unchanged. The comments in the test,
CMakeLists.txtanddocs/startup-runtime.mdnow describe the new rule.Verification
Windows 10 19045, MSVC 19.44.
AI-assisted (Claude Code).
🤖 Generated with Claude Code