From cf102ae6493e5fb3760b7fbc611eb67b5fc473a3 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:48:21 +0000 Subject: [PATCH] tests/color-icc-output-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-icc-output-test.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/color-icc-output-test.c b/tests/color-icc-output-test.c index d43585345..614406c5f 100644 --- a/tests/color-icc-output-test.c +++ b/tests/color-icc-output-test.c @@ -476,7 +476,8 @@ process_pipeline_comparison(const struct buffer *src_buf, * This tests particularly the chain of input-to-blend followed by * blend-to-output categories of color transformations. */ -TEST(opaque_pixel_conversion) +static enum test_result_code +opaque_pixel_conversion(struct wet_testsuite_data *suite_data) { int seq_no = get_test_fixture_index(); const struct setup_args *arg = &my_setup_args[seq_no]; @@ -674,7 +675,8 @@ fill_alpha_pattern(struct buffer *buf) * Specifically, this test exercises the linearization of output ICC profiles, * retrieve_eotf_and_output_inv_eotf(). */ -TEST(output_icc_alpha_blend) +static enum test_result_code +output_icc_alpha_blend(struct wet_testsuite_data *suite_data) { const int width = BLOCK_WIDTH * ALPHA_STEPS; const int height = BLOCK_WIDTH; @@ -754,7 +756,8 @@ TEST(output_icc_alpha_blend) * easy access to the ground-truth image and so do not check the results * against a reference formula. */ -TEST(output_icc_decorations) +static enum test_result_code +output_icc_decorations(struct wet_testsuite_data *suite_data) { int seq_no = get_test_fixture_index(); const struct setup_args *arg = &my_setup_args[seq_no]; @@ -772,3 +775,9 @@ TEST(output_icc_decorations) return RESULT_OK; } + +DECLARE_TEST_LIST( + TESTFN(opaque_pixel_conversion), + TESTFN(output_icc_alpha_blend), + TESTFN(output_icc_decorations), +);