From 40c3096337e6e5134d2df973ba3ecba042949c24 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:52:59 +0000 Subject: [PATCH] tests/event-test: migrate to DECLARE_TEST_LIST API Replace TEST() macros with explicit static functions and DECLARE_TEST_LIST() registration for better type safety and to prepare for removing the custom ELF section. Co-authored-by: Claude Sonnet 4.6 Signed-off-by: Pekka Paalanen --- tests/event-test.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/event-test.c b/tests/event-test.c index d503f0c31..3eac89b6c 100644 --- a/tests/event-test.c +++ b/tests/event-test.c @@ -67,7 +67,8 @@ check_client_move(struct client *client, int x, int y) } } -TEST(test_surface_output) +static enum test_result_code +test_surface_output(struct wet_testsuite_data *suite_data) { struct client *client; int x, y; @@ -129,7 +130,8 @@ static struct wl_buffer_listener buffer_listener = { buffer_release_handler }; -TEST(buffer_release) +static enum test_result_code +buffer_release(struct wet_testsuite_data *suite_data) { struct client *client; struct wl_surface *surface; @@ -194,3 +196,8 @@ TEST(buffer_release) return RESULT_OK; } + +DECLARE_TEST_LIST( + TESTFN(test_surface_output), + TESTFN(buffer_release), +);