31 return (
unsigned int)
rand();
37 Suite *
s = suite_create(
name);
40 TCase *tc_core = tcase_create(
name);
45 suite_add_tcase(
s, tc_core);
56 fail_unless(lwip_stats.mem.used == 0,
57 "mem heap still has %d bytes allocated", lwip_stats.mem.used);
61 fail_unless(lwip_stats.memp[
i]->used == 0,
62 "memp pool '%s' still has %d entries allocated",
63 lwip_stats.memp[
i]->name, lwip_stats.memp[
i]->used);
68#ifdef LWIP_UNITTESTS_LIB
69int lwip_unittests_run(
void)
95#if PPP_SUPPORT && PPPOS_SUPPORT
99 size_t num =
sizeof(suites)/
sizeof(
void*);
108 sr = srunner_create((suites[0])());
109 srunner_set_xml(sr,
"lwip_unittests.xml");
110 for(
i = 1;
i <
num;
i++) {
114#ifdef LWIP_UNITTESTS_NOFORK
115 srunner_set_fork_status(sr, CK_NOFORK);
117#ifdef LWIP_UNITTESTS_FORK
118 srunner_set_fork_status(sr, CK_FORK);
121 srunner_run_all(sr, CK_NORMAL);
122 number_failed = srunner_ntests_failed(sr);
#define LWIP_ASSERT(message, assertion)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void tcpip_init(tcpip_init_done_fn initfunc, void *arg)
_Check_return_ int __cdecl rand(void)
#define tcase_add_named_test(tc, tf)
Suite *() suite_getter_fn(void)
Suite * create_suite(const char *name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
void lwip_check_ensure_no_alloc(unsigned int skip)
unsigned int lwip_port_rand(void)
static struct test_info tests[]
static void teardown(void)
END_TEST Suite * def_suite(void)
END_TEST Suite * dhcp_suite(void)
END_TEST Suite * dns_suite(void)
END_TEST Suite * etharp_suite(void)
END_TEST Suite * ip4_suite(void)
END_TEST Suite * ip6_suite(void)
END_TEST Suite * mdns_suite(void)
END_TEST Suite * mem_suite(void)
END_TEST Suite * mqtt_suite(void)
END_TEST Suite * netif_suite(void)
END_TEST Suite * pbuf_suite(void)
Suite * sockets_suite(void)
END_TEST Suite * tcp_suite(void)
Suite * tcp_oos_suite(void)
END_TEST Suite * tcp_state_suite(void)
END_TEST Suite * timers_suite(void)
END_TEST Suite * udp_suite(void)