tests/lcms-util-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 192a396fe6
commit 0d4f42e3fa

View file

@ -59,9 +59,10 @@ static const enum transfer_fn build_MPE_curves_test_set[] = {
TRANSFER_FN_POWER2_4_EOTF_INVERSE,
};
TEST_P(build_MPE_curves, build_MPE_curves_test_set)
static enum test_result_code
build_MPE_curves(struct wet_testsuite_data *suite_data,
const enum transfer_fn *fn)
{
const enum transfer_fn *fn = data;
const cmsContext ctx = 0;
cmsToneCurve *curve;
cmsStage *stage;
@ -86,3 +87,7 @@ TEST_P(build_MPE_curves, build_MPE_curves_test_set)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN_ARG(build_MPE_curves, build_MPE_curves_test_set),
);