tried to add basic socket unit tests (nonsense only for now); made LOCK_TCPIP_CORE()/UNLOCK_TCPIP_CORE() overridable for that

This commit is contained in:
goldsimon
2017-03-16 21:52:30 +01:00
parent 2d8e17aa89
commit 8313c4d870
7 changed files with 488 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
#include "etharp/test_etharp.h"
#include "dhcp/test_dhcp.h"
#include "mdns/test_mdns.h"
#include "api/test_sockets.h"
#include "lwip/init.h"
@@ -44,7 +45,8 @@ int main(void)
pbuf_suite,
etharp_suite,
dhcp_suite,
mdns_suite
mdns_suite,
sockets_suite
};
size_t num = sizeof(suites)/sizeof(void*);
LWIP_ASSERT("No suites defined", num > 0);