From 1da7ba4ad52438924b2600c2278fc23ee6bbdb5d Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:52:59 +0000 Subject: [PATCH] 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 Signed-off-by: Pekka Paalanen --- tests/surface-global-test.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/surface-global-test.c b/tests/surface-global-test.c index 0576e5e14..971fbfa8d 100644 --- a/tests/surface-global-test.c +++ b/tests/surface-global-test.c @@ -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), +);