From 05ee5b741ec7b002a97b3366fc3176fbc193efb2 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 26 May 2026 14:52:59 +0000 Subject: [PATCH] tests/lua-shell-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/lua-shell-test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/lua-shell-test.c b/tests/lua-shell-test.c index 606c74a39..3d980afc6 100644 --- a/tests/lua-shell-test.c +++ b/tests/lua-shell-test.c @@ -73,9 +73,9 @@ next_##name(parent *from, child *pos) \ DECLARE_LIST_ITERATOR(pnode_from_z, struct weston_output, paint_node_z_order_list, struct weston_paint_node, z_order_link); -TEST(four_apps_in_a_square) +static enum test_result_code +four_apps_in_a_square(struct wet_testsuite_data *suite_data) { - struct wet_testsuite_data *suite_data = TEST_GET_SUITE_DATA(); struct app { const char *title_id; int width, height; @@ -171,3 +171,7 @@ TEST(four_apps_in_a_square) return RESULT_OK; } + +DECLARE_TEST_LIST( + TESTFN(four_apps_in_a_square), +);