From 47410163b0bb3c188cfa5d51f5da9db713dc6030 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:48:21 +0000 Subject: [PATCH] tests/color-effects-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 Signed-off-by: Pekka Paalanen --- tests/color-effects-test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/color-effects-test.c b/tests/color-effects-test.c index c8420daf4..2f3d7c1d4 100644 --- a/tests/color-effects-test.c +++ b/tests/color-effects-test.c @@ -208,7 +208,8 @@ fixture_setup(struct weston_test_harness *harness, const struct setup_args *arg) } DECLARE_FIXTURE_SETUP_WITH_ARG(fixture_setup, my_setup_args, meta); -TEST(color_effects) +static enum test_result_code +color_effects(struct wet_testsuite_data *suite_data) { int seq_no = get_test_fixture_index(); const struct setup_args *arg = &my_setup_args[seq_no]; @@ -272,3 +273,7 @@ TEST(color_effects) return res ? RESULT_OK : RESULT_FAIL; } + +DECLARE_TEST_LIST( + TESTFN(color_effects), +);