tests: Print ANSI colour codes in the Windows test driver.

That program is only meant to be used in the specific context of the CI,
so we don't care about querying the terminal or honouring environment
variables.
This commit is contained in:
Giovanni Mascellani
2025-09-23 11:25:58 +02:00
committed by Henri Verbeet
parent 507990d3c5
commit beed3f0e15
Notes: Henri Verbeet 2025-10-16 15:22:00 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1755

View File

@@ -118,7 +118,7 @@ static enum program_result run_program(const char *cmdline, const char *log_file
ret = exit_code == 0 ? PROGRAM_RESULT_SUCCESS : PROGRAM_RESULT_FAILURE;
printf("%s: %s\n", ret == PROGRAM_RESULT_SUCCESS ? "PASS" : "FAIL", cmdline);
printf("%s: %s\n", ret == PROGRAM_RESULT_SUCCESS ? "\x1b[32mPASS\x1b[m" : "\x1b[91mFAIL\x1b[m", cmdline);
out:
if (info.hProcess && !CloseHandle(info.hProcess))