aboutsummaryrefslogtreecommitdiffstats
path: root/tests/queue-test.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2015-12-28 11:25:00 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-01-16 16:37:37 +0800
commit046012a6cf1a50e1de2c73cf5a29098453b0171f (patch)
treec7e710b0f72ee5861a7aaa91c83da06308991015 /tests/queue-test.c
parenttests: Synchronize client termination in idle callback (diff)
downloadwayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.tar
wayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.tar.gz
wayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.tar.bz2
wayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.tar.lz
wayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.tar.xz
wayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.tar.zst
wayland-046012a6cf1a50e1de2c73cf5a29098453b0171f.zip
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>
Diffstat (limited to 'tests/queue-test.c')
-rw-r--r--tests/queue-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/queue-test.c b/tests/queue-test.c
index dc1a01d..02865ae 100644
--- a/tests/queue-test.c
+++ b/tests/queue-test.c
@@ -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);