mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-30 19:58:19 +02:00
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:
parent
3f93f3b55c
commit
7b33e1fd11
1 changed files with 9 additions and 2 deletions
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue