mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader_runner: Print the test context in fatal_error().
In particular, this gets us line numbers.
This commit is contained in:
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
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user