tests/pointer-shot-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 b29e1232c3
commit 2c134cfc8e

View file

@ -103,7 +103,8 @@ surface_commit_color(struct client *client, struct surface *surface,
return buf;
}
TEST(pointer_cursor_retains_committed_buffer_after_reenter)
static enum test_result_code
pointer_cursor_retains_committed_buffer_after_reenter(struct wet_testsuite_data *suite_data)
{
struct client *client;
pixman_color_t red;
@ -182,3 +183,7 @@ TEST(pointer_cursor_retains_committed_buffer_after_reenter)
return RESULT_OK;
}
DECLARE_TEST_LIST(
TESTFN(pointer_cursor_retains_committed_buffer_after_reenter),
);