6#if !LWIP_STATS || !UDP_STATS || !MEMP_STATS
7#error "This tests needs UDP- and MEMP-statistics enabled"
14 struct udp_pcb *pcb = udp_pcbs;
22 fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 0);
47 fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 0);
50 fail_unless(pcb !=
NULL);
52 fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 1);
54 fail_unless(lwip_stats.memp[MEMP_UDP_PCB].used == 0);
#define LWIP_UNUSED_ARG(x)
static Suite * create_suite(const char *name, TFun *tests, size_t num_tests, SFun setup, SFun teardown)
static struct test_info tests[]
static void udp_setup(void)
static void udp_teardown(void)
static void udp_remove_all(void)
END_TEST Suite * udp_suite(void)