From dffdcb17574cc87a020128833a1e5606054d0f6a Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:54:48 +0000 Subject: [PATCH] tests/xwayland-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/xwayland-test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/xwayland-test.c b/tests/xwayland-test.c index 948ea4269..831fda94d 100644 --- a/tests/xwayland-test.c +++ b/tests/xwayland-test.c @@ -113,7 +113,8 @@ get_wm_name(struct window_x11 *window) return wm_name; } -TEST(xwayland_client_test) +static enum test_result_code +xwayland_client_test(struct wet_testsuite_data *suite_data) { struct window_x11 *window; struct connection_x11 *conn; @@ -181,3 +182,7 @@ TEST(xwayland_client_test) return RESULT_OK; } + +DECLARE_TEST_LIST( + TESTFN(xwayland_client_test), +);