tests/roles-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:52:59 +00:00
parent 3f93f3b55c
commit 7b33e1fd11

View file

@ -74,7 +74,8 @@ get_xdg_wm_base(struct client *client)
return xdg_wm_base;
}
TEST(test_role_conflict_sub_wlshell)
static enum test_result_code
test_role_conflict_sub_wlshell(struct wet_testsuite_data *suite_data)
{
struct client *client;
struct wl_subcompositor *subco;
@ -111,7 +112,8 @@ TEST(test_role_conflict_sub_wlshell)
return RESULT_OK;
}
TEST(test_role_conflict_wlshell_sub)
static enum test_result_code
test_role_conflict_wlshell_sub(struct wet_testsuite_data *suite_data)
{
struct client *client;
struct wl_subcompositor *subco;
@ -151,3 +153,8 @@ TEST(test_role_conflict_wlshell_sub)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN(test_role_conflict_sub_wlshell),
TESTFN(test_role_conflict_wlshell_sub),
);