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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1161>
This commit is contained in:
Peter Hutterer 2025-03-14 15:53:13 +10:00
parent d344ae9ef6
commit 056bdb733a

View file

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