mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-30 14:08:21 +02:00
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 <noreply@anthropic.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
21645ceafb
commit
05ee5b741e
1 changed files with 6 additions and 2 deletions
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue