tests: cover x2w_console_mode helpers, boundaries, and status codes #3743
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!3743
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3741"
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 13:50 UTC · original
Ammmae0x:tests/console-mode-unit→main· +1388 −0 · 5 files · 1 commits · merged 2026-12-01 17:07 UTCRefs #1149
Portable C++17 unit and header-mutation tests for
src/startup_stubs/console_mode.h: 47 cases coveringfold(uppercase endpoints and neighbours, lowercase, other characters),equal_ci(exact, mixed case, nullptrs, prefix vs exact length mismatches, empty strings),is_oem_subkey(canonical mixed-case subkey, one optional leading or trailing backslash, double backslashes, nullptr, shorter and longer rejections),is_console_mode_value,answer_for(unset passes through, 1 is missing, 6 is 0x60, 7 is 0x64, other types pass through, null mode pointer never dereferenced),fill_query(status_invalid without a size pointer, null data pointer, short buffer status_more_data without touching data, exact and larger buffers serialize little-endian, null type pointer),fill_get(flags withoutrrf_rt_reg_dwordare status_wrong_type without touching output, exact and compound flags accepted), and the status, type and series constants. SixWILL_FAIL TRUEcopy mutations of the header, each killed by its control case. Zero edits to existing files (5 new files only); test names use theconsole_mode_unitprefix so they stay disjoint from the Windows-onlystartup_console_modecheck. No mingw on this host, so no Windows compile check; WIN-VERIFY run is the arbiter.Linux checks (this host,
g++ -std=c++17):AI-assisted.
Windows Verification (
acfe97b0)git merge-tree --write-tree upstream/main HEAD->4e7d70af(exit 0),git diff --checkcleanpy_compile,form_coverage_check.py,docs_links_check.py(209 files, 806 links),bidi_controls_check.py(2829 files) passeddev54/54 passed (1.44s);release54/54 passed (1.20s);console_mode_unit_check:PASS: console_mode_unit: 47/47 cases passed. AI-assisted.