mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-31 01:48:17 +02:00
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:
parent
05ee5b741e
commit
df11a7a938
1 changed files with 7 additions and 2 deletions
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue