tests/internal-screenshot-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:52:59 +00:00
parent 403532b4af
commit abfb03bd73

View file

@ -74,7 +74,8 @@ draw_stuff(pixman_image_t *image)
}
}
TEST(internal_screenshot)
static enum test_result_code
internal_screenshot(struct wet_testsuite_data *suite_data)
{
struct buffer *buf;
struct client *client;
@ -182,3 +183,7 @@ TEST(internal_screenshot)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN(internal_screenshot),
);