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 <noreply@anthropic.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-05-26 14:52:59 +00:00
parent 05ee5b741e
commit df11a7a938

View file

@ -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),
);