tests: pass the placed-buffer controls only on their stated failure #2185
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2185
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2185/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@rasptum on GitHub · 2026-11-25 03:17 UTC · original
rasptum:startup/placed-range-controls-exact→main· +11 −9 · 3 files · 1 commits · merged 2026-11-25 03:24 UTCProblem
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
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 #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 <[email protected]>@tedin7 on GitHub · 2026-11-25 03:23 UTC · original · reviewed
Review of head
6c44748cd93b2d03b003eacccbbed8dbcab159b5: 0 P1, 0 P2.Findings:
return stated ? 0 : 1flip, the CMake properties, the test header comment and docs/startup-runtime.md all agree. Capability skip (77) is kept.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--patch, Debug): flippedreturn stated ? 0 : 1tostated ? 1 : 0in the control branch -> both controls Failed (2 of 3 failed), main test still passed. Mutation reverted.Build and test on Windows: SUCCESS.AI-assisted; commands listed were executed locally.