mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-21 01:40:57 -05:00
tests: Pass argument to client main
Change the API to pass an "void *" argument to the client main function, allowing the caller to call the same main function with different input. A helper (client_create_noarg) is added for when no argument is passed, and the existing test cases are changed to use this function instead. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
7efe8fbd89
commit
046012a6cf
6 changed files with 45 additions and 37 deletions
|
|
@ -230,7 +230,7 @@ TEST(queue_proxy_destroy)
|
|||
|
||||
test_set_timeout(2);
|
||||
|
||||
client_create(d, client_test_proxy_destroy);
|
||||
client_create_noarg(d, client_test_proxy_destroy);
|
||||
display_run(d);
|
||||
|
||||
display_destroy(d);
|
||||
|
|
@ -242,7 +242,7 @@ TEST(queue_multiple_queues)
|
|||
|
||||
test_set_timeout(2);
|
||||
|
||||
client_create(d, client_test_multiple_queues);
|
||||
client_create_noarg(d, client_test_multiple_queues);
|
||||
display_run(d);
|
||||
|
||||
display_destroy(d);
|
||||
|
|
@ -254,7 +254,7 @@ TEST(queue_roundtrip)
|
|||
|
||||
test_set_timeout(2);
|
||||
|
||||
client_create(d, client_test_queue_roundtrip);
|
||||
client_create_noarg(d, client_test_queue_roundtrip);
|
||||
display_run(d);
|
||||
|
||||
display_destroy(d);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue