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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1189>
This commit is contained in:
Peter Hutterer 2025-04-15 14:01:03 +10:00
parent 6720c6899f
commit 95406b2182

View file

@ -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;