From 3fd1f0152857536abd05d3f883c830ac75271c92 Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Tue, 19 Aug 2014 10:34:52 +0200 Subject: [PATCH 1/2] 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 --- tests/event-loop-test.c | 8 ++++---- 1 file 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; -- 2.0.4