With TMP, TEMP and USERPROFILE all unset, GetTempPathW returns C:\Windows\, and the throwing create_directories/copy_file/ofstream on C:\Windows\leonida_* aborts with 0xc0000409 before the test body runs. runtime/test/test_temp_dir.h grows one entry, testfiles::temp_dir(): LEONIDA_TEST_DIR when set, the current directory when the temp environment is stripped (Windows), else the standard temp resolution. Fifty-two test files and the tiny_game fixture that called GetTempPathA/W or temp_directory_path directly now use it; d3d12_queue_handover_test.cpp also checks the _sopen_s result in capture_stderr instead of silently returning empty stderr. One runtime source function needed the same fallback because tests exercise it: tls_host_clone_dir in runtime/src/pe_loader.cpp (the loader_tls tests). Rebased onto current main after its D3D-448 additions to d3d12_mesh_test.cpp (3-way; the mesh test keeps both). Verification on a Windows VM: stripped environment - the previously crashing d3d12 tests exit 77 (no usable Vulkan device) instead of aborting, file_system_test runs all 505 checks and loader_test all 95 with zero failures; normal environment - identical outcomes; LEONIDA_TEST_DIR honored under a fully stripped environment (the scratch folder observed mid-run inside it, cleaned up after the pass). The finding is whoalin1's (coordination issue #14, 02:37:44Z).
AI-assisted.
Both ctest entries run d3d12_bindless_churn_test with one fixed
%TEMP%\leonida_bindless_churn_test folder. Under ctest -j the first to finish
removes the folder and the other fails creating its pipeline ("cannot open
...\index.json"). The folder now carries the process id, as
d3d12_execute_indirect_validation_test does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The churn test gives the two D3D12 queues distinct VkQueues where the family has two and runs the async-compute case with and without the old idle wait; with the cross-queue wait removed it fails on the RTX 5070 (reported by duudiis). vk_bindless_test flushes with ticket 1 so release_retired(0) keeps the generation (reported by duudiis and ricarmandoagent), and is registered with ctest as vk_bindless_ps_tex and vk_bindless_ps_imgatomic (it only ran from run_gpu_tests.py and check.py before). Docs: the one-VkQueue caveat is corrected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Other queues' next submission waits on the timeline value of the submission that carries a new generation's table upload; the submit result is committed under tracker_mutex_; at most 8 retired generations are kept before the flush waits for the oldest one's ticket (queue timelines, not the device); a failed new generation leaves the in-use set and the pending writes alone. The churn test gains an async-compute case (no D3D12 fence from compute to the direct queue), a check that a retired generation is pending right after its submit, and a --validated ctest. Docs: only public sources.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A flush that grows the table or changes live keys now makes a new generation (table buffers, descriptor set, descriptors rewritten from a CPU shadow) that replay binds, and frees the old one once every submission up to its ticket has completed. No vkDeviceWaitIdle. Adds d3d12_bindless_churn_test and the LEONIDA_BINDLESS_IDLE_WAIT=1 comparison knob.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>