From df11a7a9385f770ad4c6aba39192e62c97f185ea Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:52:59 +0000 Subject: [PATCH] tests/matrix-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/matrix-test.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/matrix-test.c b/tests/matrix-test.c index 12ca0df81..f962bfa2c 100644 --- a/tests/matrix-test.c +++ b/tests/matrix-test.c @@ -201,9 +201,10 @@ static const struct test_matrix matrices[] = { }, }; -TEST_P(matrix_inversion_precision, matrices) +static enum test_result_code +matrix_inversion_precision(struct wet_testsuite_data *suite_data, + const struct test_matrix *tm) { - const struct test_matrix *tm = data; struct weston_matrix rr; double err; @@ -230,3 +231,7 @@ TEST_P(matrix_inversion_precision, matrices) return RESULT_OK; } + +DECLARE_TEST_LIST( + TESTFN_ARG(matrix_inversion_precision, matrices), +);