test_jobs_runs_that_many_tests_at_a_time and test_jobs_keeps_locks_serial_tests_and_dependencies failed on every native Windows run with IndexError or ValueError in intervals(). The timed() children appended to one shared timing.log at the same time; appends from several processes are not atomic on Windows, so lines were lost or merged. Each child now writes timing/<name>.log and intervals() reads them all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run one after another, each Windows test under Wine took several seconds,
most of it a wineserver starting and stopping around every test. The
runner now keeps one wineserver alive for the run (`wineserver -p`, the
one $WINESERVER or the --wine command uses) and stops it at the end,
also after a failure or Ctrl+C. It starts the prefix's services first
with `wine wineboot` and no output: the first program a server runs
starts them, they inherit its output pipe, and with a kept server they
hold it open until the timeout.
Each test's WINEDLLOVERRIDES gains winedbg.exe=d (a crash fails at once
instead of waiting in the debugger) and winemenubuilder.exe=d (no menu
entries or file associations in the user's profile); an entry of the
caller's or the test's for the same program wins.
--jobs N (default 1) runs N tests at a time, keeping RUN_SERIAL tests
alone, tests that share a RESOURCE_LOCK apart and DEPENDS in order, and
reports them in the same order as --jobs 1.
docs/testing.md gains the fast local recipe for the cross-build with
measured times, the menu-builder note and --jobs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DriveMap.__enter__ handled only FileExistsError. A prefix whose dosdevices
folder cannot be written aborted the run with a traceback before any test.
Any OSError while mapping now sets a note and leaves the drive unmapped; the
scratch folder is removed as before.
Tests: the old drive-setup test asserted the traceback; it now checks the note,
the cleanup and that __enter__ does not raise. A second test covers a scratch
folder that cannot be created.
The fixture asserts that the child starts in the artifact folder. On Windows
tempfile hands out the 8.3 name (RUNNER~1) while Path(__file__).resolve()
returns the long one, so the assertion failed inside the child and the case
reported exit 1 in the check job. Resolving the working directory too compares
the folders, not their spellings; a child started elsewhere still fails.
A required test the Windows build never listed fails the job, but the
--summary table only iterated the results, so the step summary showed no
row explaining the failure. Add one 'missing' row per such test, once
even when --require repeats it.
Run each POSIX test in its own session and stop the group on timeout or interruption. A helper that inherits the output pipe must be stopped even when the launcher already exited.
Merge upstream main and reject malformed paths or output expressions before drive mapping. Preserve CTest's lists, the existing string form, and arbitrary values on properties the runner does not consume. Five new bad-value cases fail before the change. All 53 runner tests pass on Debian, and the reader accepts an actual CTest 3.31.6 JSON listing.
AI-assisted (Codex).
Validate test rows before mapping a Wine prefix. Accept a missing command for an unbuilt target, while rejecting invalid arguments or property records before launching any tests.
Use the shorter of the configured runner limit and a test's positive CTest TIMEOUT. A late expected failure remains a timeout, while a long or disabled CTest deadline cannot raise the runner cap.
A test-specific setting can select a different adapter or feature. Pass the CTest environment to its subprocess so Wine covers the same settings and sibling tests still inherit the runner environment.
CTest marks disabled entries as skipped even when the command is unavailable. Check the property before resolving or starting the Windows test so the Wine report gives the same result.
d3d12_compute, d3d12_draw, d3d12_r9g9b9e5_uav, d3d12_descriptor and d3d12_indirect_rt open their GLSL test
shaders through absolute paths compiled into them (LEONIDA_TEST_*_SPV, D:/a/Leonida/Leonida/runtime/build/
generated/*.spv). The runtime-windows artifact didn't carry generated/*.spv and Wine has no such D: drive, so
they failed under Wine (copy_file threw, exit 3, or the shader read failed).
The artifact now includes runtime/build/generated/*.spv, and run_wine_tests.py points the drive of
--windows-root at --root in the Wine prefix for the run (a dosdevices link to a scratch folder), leaving a
drive the prefix already has untouched and removing both links afterwards.