tests: cover present_planes resource lookup, selection, and composite steps #3754
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!3754
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3752"
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?
@Ammmae0x on GitHub · 2026-12-01 15:40 UTC · original
Ammmae0x:tests/present-planes-unit→main· +1466 −0 · 5 files · 1 commits · merged 2026-12-01 17:04 UTCRefs #1149.
Portable C++17 unit + 1:1 header-mutation tests for the x2w_startup presented-plane helpers in src/startup_stubs/present_planes.h, with zero edits to existing files (5 new files only, +1466/-0). tests/startup_present_planes_check.cpp, tests/startup_present_composite_warp.cpp, and CMakeLists.txt are untouched; the present_planes_unit prefix keeps all CMake/CTest/target names disjoint from startup_present_planes.
What landed (33 cases, tests/present_planes_unit_check.cpp):
Mutation controls: 7 WILL_FAIL TRUE header-copy controls in tests/cmake/present_planes_unit.cmake (BEFORE PRIVATE), mirrored 1:1 by compiling real copied headers in tests/present_planes_unit_meta_check.py: index_bounds, zero_res_count, select_composite_override, select_wanted_upper, composite_first_opaque, composite_dedup, composite_max_steps.
Verification (Linux, g++ -std=c++17):
Caught in development: the index_bounds mutant reads past the count, so g++ -O2 -Werror=array-bounds rejected the check until the index_at_count buffer was widened to 4 records (a mutant then fails by value, not by build error); the zero_res_count mutant tripped -Werror=parentheses until the replacement was parenthesised; the composite_max_steps mutant left max_steps unused until the replacement kept it via (void)max_steps.
Caveat: no mingw on this host, so no Windows compile check; WIN-VERIFY run is the arbiter.
Windows Verification (
7fb2ac8d)git merge-tree --write-tree upstream/main HEAD->0b99304b(exit 0),git diff --check upstream/main...HEADcleanpy_compile,form_coverage_check.py,docs_links_check.py(209 files, 806 links),bidi_controls_check.py(2830 files),present_planes_unit_meta_check.py(cl:33 cases, 7/7 mutations killed) passeddev41/41 passed (0.96s);release41/41 passed (0.88s); directpresent_planes_unit_check.exe(dev&release):PASS: present_planes_unit: 33/33 cases passed. AI-assisted.