mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 12:35:26 +00:00
Fix unit tests under linux
This commit is contained in:
parent
47f55b02bf
commit
1e5870ce85
@ -37,6 +37,6 @@ int lwip_unittests_run(void)
|
||||
/* helper functions */
|
||||
#define SKIP_POOL(x) (1 << x)
|
||||
#define SKIP_HEAP (1 << MEMP_MAX)
|
||||
void lwip_check_ensure_no_alloc(uint32_t skip);
|
||||
void lwip_check_ensure_no_alloc(unsigned int skip);
|
||||
|
||||
#endif /* LWIP_HDR_LWIP_CHECK_H */
|
||||
|
@ -33,12 +33,10 @@ Suite* create_suite(const char* name, testfunc *tests, size_t num_tests, SFun se
|
||||
return s;
|
||||
}
|
||||
|
||||
void lwip_check_ensure_no_alloc(uint32_t skip)
|
||||
void lwip_check_ensure_no_alloc(unsigned int skip)
|
||||
{
|
||||
int i;
|
||||
uint32_t mask;
|
||||
|
||||
fail_unless(skip != 0);
|
||||
unsigned int mask;
|
||||
|
||||
if (!(skip & SKIP_HEAP)) {
|
||||
fail_unless(lwip_stats.mem.used == 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user