From 056bdb733a70ecf73dd7cb7a38d64a095340fcb6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Mar 2025 15:53:13 +1000 Subject: [PATCH] test: add a helper call to mark the end of boilerplate in a test Some tests have pages of debug output to get the setup for the test correctly, add a standard marker to differentiate this from the code that matters. Part-of: --- test/litest.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/litest.h b/test/litest.h index 10002340..57e68b40 100644 --- a/test/litest.h +++ b/test/litest.h @@ -87,6 +87,9 @@ struct test_collection { }; \ static void (CONCAT(name_, __LINE__))(void) +#define litest_mark_test_start() \ + litest_checkpoint("==================== BOILERPLATE END. TEST CONTENT STARTING NOW ===================="); + __attribute__ ((format (printf, 3, 0))) void _litest_checkpoint(const char *func, int line,