tests/shader_runner: Print the test context in fatal_error().

In particular, this gets us line numbers.
This commit is contained in:
Henri Verbeet 2024-10-20 17:58:37 +02:00
parent 5e9edf25d0
commit d48f7409fe
Notes: Henri Verbeet 2024-10-24 21:02:45 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1212

View File

@ -83,8 +83,12 @@ static const char *const model_strings[] =
void fatal_error(const char *format, ...)
{
unsigned int i;
va_list args;
for (i = 0; i < vkd3d_test_state.context_count; ++i)
fprintf(stderr, "%s: ", vkd3d_test_state.context[i]);
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);