aboutsummaryrefslogtreecommitdiffstats
path: root/tests/event-loop-test.c
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2014-08-19 10:34:52 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-19 14:34:34 +0300
commit12ec657014d7fda1c9ebb0358a72bd1a4b5d868c (patch)
treef1d28aa96d337d51b6dcd6eb1b5c6eb9ed6931b0 /tests/event-loop-test.c
parenttests: add one more test for event-loop signal source (diff)
downloadwayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.tar
wayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.tar.gz
wayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.tar.bz2
wayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.tar.lz
wayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.tar.xz
wayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.tar.zst
wayland-12ec657014d7fda1c9ebb0358a72bd1a4b5d868c.zip
tests: event_loop_timer_updates - add asserts and fix indentation
Make sure the wl_event_source_timer_update suceeded. Also, fix weird indentation. Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests/event-loop-test.c')
-rw-r--r--tests/event-loop-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/event-loop-test.c b/tests/event-loop-test.c
index 1709a1a..bd85473 100644
--- a/tests/event-loop-test.c
+++ b/tests/event-loop-test.c
@@ -280,14 +280,14 @@ TEST(event_loop_timer_updates)
*/
context.source1 = wl_event_loop_add_timer(loop, timer_update_callback_1,
- &context);
+ &context);
assert(context.source1);
- wl_event_source_timer_update(context.source1, 10);
+ assert(wl_event_source_timer_update(context.source1, 10) == 0);
context.source2 = wl_event_loop_add_timer(loop, timer_update_callback_2,
- &context);
+ &context);
assert(context.source2);
- wl_event_source_timer_update(context.source2, 10);
+ assert(wl_event_source_timer_update(context.source2, 10) == 0);
context.count = 0;