mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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>
This commit is contained in:
parent
5bed9e46e7
commit
12ec657014
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue