tests: pass the placed-buffer controls only on their stated failure #2177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2185"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-25T03:17:30Z.
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
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:23:36Z.
Review: COMMENTED
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.