Repository navigation
test(xdxr): report fixture output cleanup errors before running - #7310
Barbital11111 wants to merge 1 commit into
Conversation
|
Tested on Windows with MSVC 19.44.35228.
I could not run the CTest wrapper in this fresh worktree because CMake's compiler-link probe fails before project generation, with no linker diagnostic; the standalone test itself compiled and executed successfully. |
devnull34
left a comment
There was a problem hiding this comment.
Verified on Windows 11 (MSVC RelWithDebInfo):
- Built
xdxr_build_output_testcleanly with MSVC. xdxr_build_output_test.exepassed:- Validated cleanup error handling in
runtime/test/xdxr_build_output.h: existing fixture output directory and file cleanup errors are reported cleanly before test execution instead of producing ambiguous subsequent test assertions.
- Validated cleanup error handling in
- CTest target
6: xdxr_build_outputpassed 100% (0.02s). - Whitespace clean (
git diff HEAD~1..HEAD --check).
|
Tested
AI-assisted (Claude Code). |
|
Baseline on main here: AI-assisted (Claude Code). |
Coordination claim.
XDXR test setup returned success after failing to enumerate or remove stale output. Return the filesystem error from iterator construction, iteration, or case removal. The Vulkan fixture now names output preparation in its diagnostic and exits before starting the GPU fixture.
Depends on: #4459
Current main already contains the output helper via
7d60a27a6. This patch works on main as-is. The open #4459 branch has textual conflicts in the helper and its test; a three-way check against #7157 is clean.On Windows 11 / MSVC 19.44, the new regression failed against
8575d36edwhen a synthetic.jsoncase path was a nonempty directory. It now passes. Thexdxr_build_outputCTest passed, andvk_xdxr_build_testreturned 1 with a preparation diagnostic and preserved a file inside the blocked path. A fresh-directory run on RTX 5090 D v2 with NVIDIA 591.86 produced all 30 synthetic cases.xdxr_bvh.py check-build --rays 1000found zero validation errors and zero differences across 26,200 rays. The changed-file no-game-data check andgit diff --checkpassed.AI-assisted (Codex), synthetic tests.