From 2c134cfc8ef8fa8df7274e52098936da69f316be Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:52:59 +0000 Subject: [PATCH] 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 Signed-off-by: Pekka Paalanen --- tests/pointer-shot-test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/pointer-shot-test.c b/tests/pointer-shot-test.c index ce027b183..49aca10b8 100644 --- a/tests/pointer-shot-test.c +++ b/tests/pointer-shot-test.c @@ -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), +);