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

@@ -33,10 +33,10 @@
#define LWIP_HDR_LWIPOPTS_H
/* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
#define NO_SYS 1
#define NO_SYS 0
#define SYS_LIGHTWEIGHT_PROT 0
#define LWIP_NETCONN 0
#define LWIP_SOCKET 0
#define LWIP_NETCONN 1
#define LWIP_SOCKET 1
/* Enable DHCP to test it, disable UDP checksum to easier inject packets */
#define LWIP_DHCP 1