Commit 12ec6570 authored by Marek Chalupa's avatar Marek Chalupa Committed by Pekka Paalanen
Browse files

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: default avatarMarek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent 5bed9e46
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment