mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
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:
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
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user