From a103cb5548fd182f298a9f4bf45673c30ac080ec Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:52:59 +0000 Subject: [PATCH] tests/surface-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-test.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/surface-test.c b/tests/surface-test.c index d93e87d83..410baae64 100644 --- a/tests/surface-test.c +++ b/tests/surface-test.c @@ -44,7 +44,9 @@ fixture_setup(struct weston_test_harness *harness) } DECLARE_FIXTURE_SETUP(fixture_setup); -PLUGIN_TEST(surface_transform) +static enum test_result_code +surface_transform(struct wet_testsuite_data *suite_data, + struct weston_compositor *compositor) { /* struct weston_compositor *compositor; */ struct weston_surface *surface; @@ -81,3 +83,7 @@ PLUGIN_TEST(surface_transform) return RESULT_OK; } + +DECLARE_TEST_LIST( + TESTFN_PLUGIN(surface_transform), +);