Fix unit tests under linux

This commit is contained in:
goldsimon 2017-08-04 06:17:21 +02:00
parent 47f55b02bf
commit 1e5870ce85
2 changed files with 3 additions and 5 deletions

View File

@ -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 */

View File

@ -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);