tests/surface-global-test: migrate to DECLARE_TEST_LIST API

Replace PLUGIN_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 ba7d8fc3ca
commit 1da7ba4ad5

View file

@ -45,7 +45,9 @@ fixture_setup(struct weston_test_harness *harness)
}
DECLARE_FIXTURE_SETUP(fixture_setup);
PLUGIN_TEST(surface_to_from_global)
static enum test_result_code
surface_to_from_global(struct wet_testsuite_data *suite_data,
struct weston_compositor *compositor)
{
/* struct weston_compositor *compositor; */
struct weston_surface *surface;
@ -114,3 +116,7 @@ PLUGIN_TEST(surface_to_from_global)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN_PLUGIN(surface_to_from_global),
);