From d48f7409fe51b9a4bf91e17a78d60be8736d5912 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 20 Oct 2024 17:58:37 +0200 Subject: [PATCH] tests/shader_runner: Print the test context in fatal_error(). In particular, this gets us line numbers. --- tests/shader_runner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/shader_runner.c b/tests/shader_runner.c index 29ff13d4..d34de21e 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -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);