mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
unittests: fix compiling in release mode
This commit is contained in:
parent
4323e95dce
commit
9e2fb2806f
@ -58,9 +58,15 @@ void lwip_check_ensure_no_alloc(unsigned int skip)
|
|||||||
}
|
}
|
||||||
for (i = 0, mask = 1; i < MEMP_MAX; i++, mask <<= 1) {
|
for (i = 0, mask = 1; i < MEMP_MAX; i++, mask <<= 1) {
|
||||||
if (!(skip & mask)) {
|
if (!(skip & mask)) {
|
||||||
|
#if defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY
|
||||||
fail_unless(lwip_stats.memp[i]->used == 0,
|
fail_unless(lwip_stats.memp[i]->used == 0,
|
||||||
"memp pool '%s' still has %d entries allocated",
|
"memp pool '%s' still has %d entries allocated",
|
||||||
lwip_stats.memp[i]->name, lwip_stats.memp[i]->used);
|
lwip_stats.memp[i]->name, lwip_stats.memp[i]->used);
|
||||||
|
#else
|
||||||
|
fail_unless(lwip_stats.memp[i]->used == 0,
|
||||||
|
"memp pool %d still has %d entries allocated",
|
||||||
|
i, lwip_stats.memp[i]->used);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user