From 6af4215f2793ec6df13943cdb654703a07c477a8 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 8 Jul 2016 10:12:05 +0200 Subject: [PATCH] Next try to fix test_udp.c (can't compile it at my current machine) --- test/unit/udp/test_udp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/udp/test_udp.c b/test/unit/udp/test_udp.c index 4cdeb2db..147822f4 100644 --- a/test/unit/udp/test_udp.c +++ b/test/unit/udp/test_udp.c @@ -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