mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-31 22:48:34 +02:00
tests/buffer-transforms-test: migrate to DECLARE_TEST_LIST API
Replace TEST_P() 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
f4d7ff3c20
commit
99fc36f210
1 changed files with 11 additions and 4 deletions
|
|
@ -116,9 +116,10 @@ static const struct buffer_args my_buffer_args[] = {
|
|||
{ 3, TRANSFORM(FLIPPED_90) },
|
||||
};
|
||||
|
||||
TEST_P(buffer_transform, my_buffer_args)
|
||||
static enum test_result_code
|
||||
buffer_transform(struct wet_testsuite_data *suite_data,
|
||||
const struct buffer_args *bargs)
|
||||
{
|
||||
const struct buffer_args *bargs = data;
|
||||
const struct setup_args *oargs;
|
||||
struct client *client;
|
||||
bool match;
|
||||
|
|
@ -166,9 +167,10 @@ static const struct buffer_args my_split_args[] = {
|
|||
{ 2, TRANSFORM(NORMAL) },
|
||||
};
|
||||
|
||||
TEST_P(buffer_transform_split, my_split_args)
|
||||
static enum test_result_code
|
||||
buffer_transform_split(struct wet_testsuite_data *suite_data,
|
||||
const struct buffer_args *bargs)
|
||||
{
|
||||
const struct buffer_args *bargs = data;
|
||||
const struct setup_args *oargs;
|
||||
struct client *client;
|
||||
bool match;
|
||||
|
|
@ -221,3 +223,8 @@ TEST_P(buffer_transform_split, my_split_args)
|
|||
|
||||
return RESULT_OK;
|
||||
}
|
||||
|
||||
DECLARE_TEST_LIST(
|
||||
TESTFN_ARG(buffer_transform, my_buffer_args),
|
||||
TESTFN_ARG(buffer_transform_split, my_split_args),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue