upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-21 23:36:48 -0600
committerbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-21 23:36:48 -0600
commitf966fc159bf3363b79775fa180b7d1cb096f5ede (patch)
tree53cbb02b47a30cbc6b32822aed4ec9e3f111586c /runtime/src/main.cpp
parent067d3e8b97189fcf272dc699fdbb871eae496660 (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