test: name a missing probe line when the debug-heap check fails #1856
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1863"
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 ChazY11 on 2026-11-24T19:45:27Z.
Why
startup_debugasserts on a line the probe prints:With a stale
startup_debug_probe.exe— one built before that print existed — the failure is:The whole stdout is one line, the message shows it, and nothing suggests the actual cause. I spent twenty minutes on it
reading it as a heap-flag regression before rebuilding the probe; the test then passed unchanged.
Change
Both flag assertions now report through one helper:
When the line is present but wrong the output is unchanged, so a real flag regression still reads exactly as before.
Tested
*simulated by deleting the
printffromtests/startup_debug_probe.cpp, rebuilding, then restoring and rebuilding theprobe — the source is unchanged in this PR.
Scope
One test file, the two assertions that read that line. No production code, no other test.
Notes
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T19:49:40Z.
Review: COMMENTED
Reviewed head
7aa033d5dcee480e25e7e4b0171c52f72cf87e10in a clean Linux worktree.git diff --check origin/main...HEAD: clean (rc 0)python -B tests/docs_links_check.py: rc 0python -B tests/bidi_controls_check.py: rc 0ast.parse) of the touched test: rc 0Findings: 0 P1, 0 P2.
The change only improves the assertion message when the heap-flags line is missing. The asserted conditions (
heap flags 0x0and0x70) are unchanged, so no logic is fixed or newly checked. The test needs the Windows debug launcher, so I could not run it here. A mutation would only change message text, so I did not run one.Small nit: PEP 8 wants two blank lines between
missing_heap_flagsandrun; there is one.Thanks for the contribution. As a message-only change it adds no new behavior check, so I am not recommending a merge for the quality filter.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T20:28:57Z.
Review: COMMENTED
Review of head
7aa033d5dcCommands run locally (all rc=0):
git diff --check origin/main...HEAD,python3 tests/docs_links_check.py,python3 tests/bidi_controls_check.py,python3 -m py_compileon the touched test file.The script needs the Windows probe, so the changed asserts cannot run on Linux. Win2025 was not run (pure-Python fast path).
Mutation: reverting the assert messages only changes the failure text. No test in the repo fails, because the change does not touch what is asserted. It does not protect any tools/ or src/ logic.
Result: no P1 or P2 defects, but the change kills no mutation of real logic (it only improves a failure message), so it does not pass the quality filter for a safe-merge. No receipt written, not merged. A maintainer can still merge it by hand if the message is wanted.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T20:29:41Z.
Review: COMMENTED
Correction: the mutation line in my review above was not run. I only read the diff. The asserts need the Windows probe, so they cannot run on Linux. Verdict unchanged: no merge, since the change only improves a failure message.
AI-assisted; commands listed were executed locally.