Next try to fix test_udp.c (can't compile it at my current machine)

This commit is contained in:
Dirk Ziegelmeier 2016-07-08 10:12:05 +02:00
parent 2df636fe77
commit 6af4215f27

View File

@ -19,7 +19,7 @@ udp_remove_all(void)
pcb = pcb->next;
udp_remove(pcb2);
}
fail_unless(MEMP_STATS_GET(MEMP_UDP_PCB, used) == 0);
fail_unless(MEMP_STATS_GET(used, MEMP_UDP_PCB) == 0);
}
/* Setups/teardown functions */
@ -44,14 +44,14 @@ START_TEST(test_udp_new_remove)
struct udp_pcb* pcb;
LWIP_UNUSED_ARG(_i);
fail_unless(MEMP_STATS_GET(MEMP_UDP_PCB, used) == 0);
fail_unless(MEMP_STATS_GET(used, MEMP_UDP_PCB) == 0);
pcb = udp_new();
fail_unless(pcb != NULL);
if (pcb != NULL) {
fail_unless(MEMP_STATS_GET(MEMP_UDP_PCB, used) == 1);
fail_unless(MEMP_STATS_GET(used, MEMP_UDP_PCB) == 1);
udp_remove(pcb);
fail_unless(MEMP_STATS_GET(MEMP_UDP_PCB, used) == 0);
fail_unless(MEMP_STATS_GET(used, MEMP_UDP_PCB) == 0);
}
}
END_TEST