tests: cover x2w_audio saturating counters, snapshots, and refusal totals #3747
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!3747
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3745"
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 14:06 UTC · original
Ammmae0x:tests/audio-telemetry→main· +1063 −0 · 5 files · 1 commits · merged 2026-12-01 17:04 UTCRefs #1149
Add portable C++17 unit, boundary, thread-saturation, and 1:1 header-mutation tests for
x2w_audio(src/startup_stubs/audio_telemetry.h), with zero edits to existing files (5 new files only, +1063/-0).24 cases in
tests/audio_telemetry_check.cpp:saturating_add(zero amount on zero andUINT64_MAX, default 1, exact fit, overflow-by-1 clamp, addingUINT64_MAXto non-zero, concurrent exact sum and concurrent saturation nearUINT64_MAX),OpusCounters/snapshot(zero init of all 11 fields, 11 distinct primes read back without swaps),saturating_total(in-place + return equality, exact fit, overflow-by-1 clamp),refused_total(ignores non-refusal fields, single-field isolation for all 8refused_*fields, their sum, cross-field overflow clamp).tests/cmake/audio_telemetry.cmakeregisters per-case tests plusaudio_telemetry_alland 6WILL_FAIL TRUEheader-copy controls;tests/audio_telemetry_meta_check.pyaudits the contract and kills each mutant natively with g++.Linux checks (this host, g++ 13.3.0):
form_coverage_check.py,docs_links_check.py(208 files/802 links) andbidi_controls_check.py(2826 files) pass;git diff --checkclean; scratch CMake + CTest 31/31;run_checks_parallel --from-dir tests/checks/python-linux: all 90 checks passed. Merge-tree against currentorigin/mainexits 0 with no conflicts. No mingw on this host, so no Windows compile check; Windows verification is the arbiter.AI-assisted.
Windows Verification (
031af6e7)git merge-tree --write-tree upstream/main HEAD->92e4ee6b(exit 0),git diff --checkcleanpy_compile,form_coverage_check.py,docs_links_check.py(209 files, 806 links),bidi_controls_check.py(2830 files) passeddev31/31 passed (1.23s);release31/31 passed (1.11s);audio_telemetry_check:PASS: audio_telemetry: 24/24 cases passed. AI-assisted.