lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] lwip_unittests crash


From: Gisle Vanem
Subject: Re: [lwip-devel] lwip_unittests crash
Date: Tue, 25 Aug 2015 16:59:05 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1

Erik Ekman wrote:

Maybe the netif_list parameter contains bad data after running the dhcp or 
etharp tests.

No, I'd say either the 'tcp' or 'tcp_oos' suite is broken.
After this diff:

--- a/test/unit/lwip_unittests.c 2015-08-24 18:54:45
+++ b/test/unit/lwip_unittests.c    2015-08-25 16:48:39
@@ -37,16 +37,25 @@
   size_t i;
   suite_getter_fn* suites[] = {
     udp_suite,
-    tcp_suite,
-    tcp_oos_suite,
+//  tcp_suite,
+//  tcp_oos_suite,
     mem_suite,
-    pbuf_suite,
+//  pbuf_suite,
     etharp_suite,
     dhcp_suite
   };

And running 'lwip_unittests.exe', I get:

Running suite(s): UDP
 MEM
 ETHARP
 DHCP
75%: Checks: 8, Failures: 2, Errors: 0
udp/test_udp.c:52:F:UDP:test_udp_new_remove:0: Assertion 
'lwip_stats.memp[MEMP_UDP_PCB].used == 1' failed
core/test_mem.c:42:F:MEM:test_mem_one:0: Assertion 'lwip_stats.mem.used >= 
SIZE1' failed

At least no crashes ...

> netif_list parameter contains bad data

For sure, but where? I supposed the unit-test should detect this.
Some problem with Check or my lwip-config...

--
--gv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]