diff options
| author | Marek Chalupa <mchqwerty@gmail.com> | 2014-11-21 11:15:24 +0100 |
|---|---|---|
| committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-12-01 12:04:18 +0200 |
| commit | fdb519be08b35c7d9659b0476aec78c170f7680d (patch) | |
| tree | 5dcd981369cc72528b359d457938065d6fdc3786 /tests/queue-test.c | |
| parent | tests: detect if debugger is attached (diff) | |
| download | wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.tar wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.tar.gz wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.tar.bz2 wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.tar.lz wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.tar.xz wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.tar.zst wayland-fdb519be08b35c7d9659b0476aec78c170f7680d.zip | |
tests: split queue-test testcases
All the test-cases are in one test atm. It doesn't matter for the
outcome, but when it is split to more tests, the debugging and reading
the output is simpler.
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests/queue-test.c')
| -rw-r--r-- | tests/queue-test.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/queue-test.c b/tests/queue-test.c index d1bf37f..9eb913c 100644 --- a/tests/queue-test.c +++ b/tests/queue-test.c @@ -207,7 +207,7 @@ dummy_bind(struct wl_client *client, { } -TEST(queue) +TEST(queue_proxy_destroy) { struct display *d; const struct wl_interface *dummy_interfaces[] = { @@ -230,9 +230,27 @@ TEST(queue) client_create(d, client_test_proxy_destroy); display_run(d); + display_destroy(d); +} + +TEST(queue_multiple_queues) +{ + struct display *d = display_create(); + + test_set_timeout(2); + client_create(d, client_test_multiple_queues); display_run(d); + display_destroy(d); +} + +TEST(queue_roundtrip) +{ + struct display *d = display_create(); + + test_set_timeout(2); + client_create(d, client_test_queue_roundtrip); display_run(d); |
