5#include "arch/sys_arch.h"
14 struct sys_timeo**
list_head = sys_timeouts_get_next_timeout();
22 struct sys_timeo**
list_head = sys_timeouts_get_next_timeout();
35#define HANDLER_EXECUTION_TIME 5
49 struct sys_timeo**
list_head = sys_timeouts_get_next_timeout();
107 sys_check_timeouts();
108 fail_unless(
fired[0] == 0);
109 fail_unless(
fired[1] == 0);
110 fail_unless(
fired[2] == 1);
114 sys_check_timeouts();
115 fail_unless(
fired[0] == 0);
116 fail_unless(
fired[1] == 0);
117 fail_unless(
fired[2] == 1);
120 sys_check_timeouts();
121 fail_unless(
fired[0] == 1);
122 fail_unless(
fired[1] == 1);
123 fail_unless(
fired[2] == 1);
130 struct sys_timeo**
list_head = sys_timeouts_get_next_timeout();
135 fail_unless(sys_timeouts_sleeptime() == 10);
137 fail_unless(sys_timeouts_sleeptime() == 10);
139 fail_unless(sys_timeouts_sleeptime() == 5);
150 sys_check_timeouts();
151 fail_unless(
fired[2] == 0);
154 sys_check_timeouts();
155 fail_unless(
fired[2] == 1);
158 sys_check_timeouts();
159 fail_unless(
fired[0] == 0);
162 sys_check_timeouts();
163 fail_unless(
fired[0] == 1);
166 sys_check_timeouts();
167 fail_unless(
fired[1] == 0);
170 sys_check_timeouts();
171 fail_unless(
fired[1] == 1);
200 sys_check_timeouts();
201 fail_unless(
fired[0] == 0);
205 sys_check_timeouts();
206 fail_unless(
fired[0] == 0);
210 sys_check_timeouts();
211 fail_unless(
fired[0] == 0);
215 sys_check_timeouts();
216 fail_unless(
fired[0] == 1);
#define LWIP_ARRAYSIZE(x)
#define LWIP_PTR_NUMERIC_CAST(target_type, val)
#define LWIP_UNUSED_ARG(x)
Suite * create_suite(const char *name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
static struct test_info tests[]
static void test_timers(void)
static void dummy_cyclic_handler(void)
static void timers_setup(void)
static void do_test_cyclic_timers(u32_t offset)
static void timers_teardown(void)
struct lwip_cyclic_timer test_cyclic
#define HANDLER_EXECUTION_TIME
static void dummy_handler(void *arg)
static struct sys_timeo * old_list_head
END_TEST Suite * timers_suite(void)
static END_TEST void do_test_timers(u32_t offset)