From 95406b218202d7e64797420f0a1b5d733d82bcc6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 15 Apr 2025 14:01:03 +1000 Subject: [PATCH] test: print the full test result in the list of failed tests When running several tests simply having the list of failed test names is not very convenient. The actual error may be thousands of lines north and worse, meson only prints the last 100 lines of a test log by default. So let's print the full test data including backtrace etc. at the end instead. Part-of: --- test/litest-runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest-runner.c b/test/litest-runner.c index fe4cdd52..42e00595 100644 --- a/test/litest-runner.c +++ b/test/litest-runner.c @@ -1049,7 +1049,7 @@ litest_runner_run_tests(struct litest_runner *runner) case LITEST_FAIL: case LITEST_SYSTEM_ERROR: case LITEST_TIMEOUT: - fprintf(runner->fp, " - \"%s\"\n", t->desc.name); + litest_runner_log_test_result(runner, t); break; default: break;