Files
node/test/tools
Filip Skokan e2d5522773 tools: tolerate non-UTF-8 test output
Non-UTF-8 bytes in captured test output cause Execute() to raise
UnicodeDecodeError. CI reports can then attribute the failure to an
earlier, expected "Error: uncaught" message from a passing cctest.

Replace malformed UTF-8 in stdout and stderr so the runner reports test
results while preserving the child process exit status.

Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-10-16.md
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
PR-URL: https://github.com/nodejs/node/pull/66783
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
2026-10-18 07:18:16 +00:00
..