diff options
Diffstat (limited to 'test/testutil/tests.c')
-rw-r--r-- | test/testutil/tests.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testutil/tests.c b/test/testutil/tests.c index f00ec6c19e..67b20a572c 100644 --- a/test/testutil/tests.c +++ b/test/testutil/tests.c @@ -43,6 +43,7 @@ static void test_fail_message(const char *prefix, const char *file, int line, const char *type, const char *fmt, ...) PRINTF_FORMAT(5, 6); +int subtest_level(void); static void helper_printf_stderr(const char *fmt, ...) { @@ -56,6 +57,7 @@ static void helper_printf_stderr(const char *fmt, ...) static void test_fail_message_va(const char *prefix, const char *file, int line, const char *type, const char *fmt, va_list ap) { + helper_printf_stderr("%*s# ", subtest_level(), ""); test_puts_stderr(prefix != NULL ? prefix : "ERROR"); test_puts_stderr(":"); if (type) |