Commit Graph

4 Commits

Author SHA1 Message Date
7a6eb36b67 tests: the quick-program GPU timeout case no longer races Python startup (TEST-GPU-TIMEOUT-QUICK-LOAD)
test_quick_program_is_unaffected ran `python -c "print('ok')"` under the
0.5 s limit the hang cases use. On a loaded Windows host starting the child
alone can take longer, so the quick program was killed and the test failed
for the wrong reason (3 of 10 runs with the CPU saturated). That one case now
runs under a 60 s limit, still a limit; the hang cases keep 0.5 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
2026-11-25 01:01:02 +01:00
21d01a9570 fix(tests): enforce the GPU timeout for texture cases
The texture harness needs a shader working directory, so two branches launched it directly and bypassed the configured deadline. Pass the working directory through the shared launcher so those cases time out and the suite can continue.
2026-11-22 17:04:37 +01:00
ec88330738 Cover invalid and non-finite GPU timeouts 2026-11-22 10:53:54 +01:00
6c5550d456 GPU tests: give each test program a time limit, so a GPU hang fails one test instead of stalling the suite
run_gpu_tests.py (run_cmd) and check.py (run, the mesh harness) start each GPU program with
LEONIDA_GPU_TEST_TIMEOUT seconds (default 120, 0 = no limit). A program that runs longer is
killed and its test fails with 'timed out after N s'. The translator step over the whole suite
keeps no limit. Seen on an Intel UHD 770, where cs_barrier_divergent can hang vk_compute_test.
2026-11-21 22:37:45 -05:00