diff options
| author | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-21 23:36:48 -0600 |
|---|---|---|
| committer | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-21 23:36:48 -0600 |
| commit | f966fc159bf3363b79775fa180b7d1cb096f5ede (patch) | |
| tree | 53cbb02b47a30cbc6b32822aed4ec9e3f111586c /runtime/src/main.cpp | |
| parent | 067d3e8b97189fcf272dc699fdbb871eae496660 (diff) | |
Tests: cover the Wine test runner, and stop it crashing on bad input
scripts/run_wine_tests.py is what runtime.yml's wine job runs, and it was the
only script in the tree with no test. tests/test_run_wine_tests.py drives it
with the Python interpreter as the "wine" command and tiny exit-code scripts
as build artifacts, so every status and exit code is checked without Wine.
That exposed three real defects, fixed here: a --tests file that is not JSON
(and JSON that is not ctest --show-only=json-v1 output) ended in a
JSONDecodeError/AttributeError before any test ran; a wine command that cannot
be started ended in FileNotFoundError out of subprocess.run, losing every
result; and WILL_FAIL/ctest booleans were read with Python truthiness, so the
JSON string "0" inverted the check. --timeout now refuses 0 and negatives,
which previously raised ValueError inside subprocess.run.
Negative control on main: 1 failure and 17 errors. With the change: 24/24.
Standard library only, no Wine, no game data.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions