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 <noreply@anthropic.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-05-26 14:54:48 +00:00
parent 610a7f9aa7
commit dffdcb1757

View file

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