tests: report the depth-target debug-layer check as its own test #2176
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2184"
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:27Z.
Refs #1999. Follow-up to the non-blocking review notes on #2156.
Change
startup_draw_depth_target, the bound case's debug-message check was skipped with only a printed note when the D3D12 debug layer is not installed. It is now its own test,startup_draw_depth_target_debug_{warp,hardware}. It requires the bound picture and no debug-layer message of any severity after the fence, and exits 77 (a capability skip that CTest reports) when the layer is missing. The check mode keeps every pixel, depth and counter check, so nothing is weakened; the missing-layer case simply becomes visible instead of passing with a note.run_casecomment. It now says why theunknowncase is exempt from the-> drawn;check: the stand-in refuses the wholeOMSetRenderTargetsthere, so no draw may be issued. "Nothing drawn" is checked through the read-back (clear colour, depth 1.0) and the refusal line.docs/startup-runtime.mdmentions the_debugtest.Verification
Windows 10 19045, MSVC 19.44. WARP: Microsoft Basic Render Driver, driver 10.0.19041.5794. Hardware: NVIDIA GeForce RTX 3060, driver 32.0.15.9636. The D3D12 debug layer is installed on this machine.
startup_draw_depth_target_{warp,hardware};_drop_control_{warp,hardware}: red in front, depth 1.0;_debug_{warp,hardware}: "debug layer enabled, 0 debug-layer message(s) after the fence; bound picture matches".return 77on the existingdebug layer: ... enabledcheck.AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:24:25Z.
Review: COMMENTED
Review of head
c881a5c703(tests-only: CMakeLists.txt, docs/startup-runtime.md, tests/startup_draw_depth_target_check.py).Findings: 0 P1, 0 P2. Splitting the debug-layer assertion into its own
_debugCTest that exits 77 when the layer is missing is correct: a missing layer is now reported as a skip instead of a silent pass inside theboundcase. The new CMake test is added to the same SKIP_RETURN_CODE 77 / TIMEOUT 120 property list as its siblings, and the docs match the script. No overlapping open PR touches this check.Linux, executed locally:
python3 -m py_compile tests/startup_draw_depth_target_check.py: okpython3 tests/docs_links_check.py: pass (402 links)python3 tests/bidi_controls_check.py: passgit diff --check origin/main...HEAD: cleancheckrc 0,debugrc 0,debugwithout layer rc 77,debugwith a debug-layer message rc 1.git checkout -- .): dropping thenot bound["debug"]condition lets the message case pass (rc 0 instead of 1); changingreturn 77toreturn 0turns the no-layer skip into a pass; inverting the bound-picture comparison makes the clean run fail (rc 1 instead of 0). All three change the outcome, so the new test is killed by each.Windows: GitHub
Build and test on Windows= SUCCESS. The local Win2025 WARP run (x2w_pipe.py win2025 2184, 3-slot pool) built startup_draw_depth_target.exe but twice reported "No tests were found": INTAKE_PYTHON was missing on slot 3, so the Python-driven tests were not registered. That is an infrastructure problem, not a result for this PR; the WARP_debug/_drop_control/_warptests are therefore not locally confirmed.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:43:52Z.
Review: COMMENTED
Review of head
dd8cf6db4a(files: CMakeLists.txt, docs/startup-runtime.md, tests/startup_draw_depth_target_check.py).Findings: 0 P1, 0 P2.
What it does: the debug-layer message check moves out of
checkinto a newdebugmode (startup_draw_depth_target_debug_{warp,hardware}). The mode exits 77 when the layer is absent, so CTest reports a skip instead of a silent pass. SKIP_RETURN_CODE 77 is set for the new test. The docs describe the split accurately. Sibling tests (check,drop_control) are unchanged in behavior.Commands executed locally:
python3 tests/docs_links_check.py-> 18 files, 405 links OKpython3 tests/bidi_controls_check.py-> OKgit diff --check origin/main...HEAD-> cleanmain()indebugmode with canned run results): clean/no layer/with messages -> 0/77/1. Mutant removingnot bound["debug"]from the return -> the with-messages case returns 0 instead of 1 (killed).ctest -R '^startup_draw_depth_target_(warp|drop_control_warp|debug_warp)$' --no-tests=error: 3/3 completed,warpanddrop_control_warpPassed,debug_warpSkipped (the Windows VM has no D3D12 debug layer, so the message check did not run there; a skip, not a pass).Build and test on Windows= SUCCESS, Linux Python checks = SUCCESS.Note: the debug-message assertion is therefore only exercised on hosts with the debug layer installed. This is by design and now reported as a skip.
AI-assisted; commands listed were executed locally.