From dcf2bdffad6928911d5dac6bca27e174260b1528 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:51:31 +0000 Subject: [PATCH] tests/color-representation-drm-test: migrate to DECLARE_TEST_LIST API Replace TEST_P() 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-representation-drm-test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/color-representation-drm-test.c b/tests/color-representation-drm-test.c index bd5dcee9c..2fa523811 100644 --- a/tests/color-representation-drm-test.c +++ b/tests/color-representation-drm-test.c @@ -65,8 +65,10 @@ fixture_setup(struct weston_test_harness *harness, const struct setup_args *arg) } DECLARE_FIXTURE_SETUP_WITH_ARG(fixture_setup, my_setup_args, meta); -TEST_P(color_representation_drm, color_state_cases) { - const struct color_state *color_state = data; +static enum test_result_code +color_representation_drm(struct wet_testsuite_data *suite_data, + const struct color_state *color_state) +{ const struct setup_args *args = &my_setup_args[get_test_fixture_index()]; return test_color_representation(color_state, args->buffer_type, @@ -74,3 +76,7 @@ TEST_P(color_representation_drm, color_state_cases) { WESTON_CAPTURE_V1_SOURCE_WRITEBACK, FB_PRESENTED_ZERO_COPY); } + +DECLARE_TEST_LIST( + TESTFN_ARG(color_representation_drm, color_state_cases), +);