Commit Graph

4 Commits

Author SHA1 Message Date
b17397f0dd tests: derive every test's scratch folder from test_temp_dir::temp_dir, not GetTempPath (TEST-TEMPDIR-STRIPPED-ENV)
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.
2026-11-28 19:01:06 +00:00
2d27368bb0 bink_audio_test: a movie without audio tracks is a ctest skip, not a pass
It printed "SKIP (movie has no audio tracks)" and returned 0, so ctest counted
a run that checked nothing as passed (#1580 moved the unconfigured cases to 77
but not this one). Return 77, and check in test_ctest_registration.py that a
whole-test SKIP in a test registered with SKIP_RETURN_CODE 77 returns 77.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:40:17 +01:00
4852fe83e2 Report unconfigured retail runtime tests as skipped 2026-11-22 20:23:07 +08:00
c2080b5d2d runtime: add optional Bink Audio track extraction test 2026-11-21 19:26:26 +00:00