Five tests that only the Linux CI runs fail on Windows:
- test_report_paths: the darwin patch kept Windows' os.path.normcase,
which lowercases; use posixpath.normcase there too.
- test_audio_wav, test_audio_stage_resume: cmd.exe decodes the fake
ffmpeg.cmd with the OEM code page, not UTF-8; write non-ASCII paths as
their 8.3 short names, the file in the OEM code page.
- test_make_game_submodule, tools/spirv_metal_set0.py: text=True decodes
UTF-8 child output with the ANSI code page and the reader thread dies;
errors="replace".
- test_spirv_metal_set0_cli_errors: read the Python child's stderr in the
locale encoding it writes, not UTF-8.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`spirv_metal_set0.py in.spv out.spv` ended in a traceback when spirv-dis
or spirv-as was not on PATH (FileNotFoundError) or rejected its input, such
as a missing or non-SPIR-V in.spv (CalledProcessError).
The command line now goes through cli(), which reports either as one line
and exit 1: the program, its exit status and the first line it wrote, or
the program that could not be started with a hint about PATH and
SPIRV_DIS / SPIRV_AS (Windows does not name the program in that error, so
_run() adds it). main() still raises as before; the existing tests that
call it are unchanged and pass.
tests/test_spirv_metal_set0_cli_errors.py needs no SPIRV-Tools: SPIRV_DIS
and SPIRV_AS point at the Python interpreter or at a missing path. All 7
tests fail on the tool as it was.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>