tests/alpha-blending-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 <noreply@anthropic.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-05-26 14:48:21 +00:00
parent d47ae7351a
commit b5b6e4da3e

View file

@ -302,7 +302,8 @@ check_blend_pattern(struct buffer *bg, struct buffer *fg, struct buffer *shot,
* using their default color spaces
* - blending through gl-renderer shadow framebuffer
*/
TEST(alpha_blend)
static enum test_result_code
alpha_blend(struct wet_testsuite_data *suite_data)
{
const int width = BLOCK_WIDTH * ALPHA_STEPS;
const int height = BLOCK_WIDTH;
@ -378,3 +379,7 @@ TEST(alpha_blend)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN(alpha_blend),
);