Skip to content

Commit bdc3d60

Browse files
Merge branch 'master' into exceptions
2 parents ffaa93f + dc5e352 commit bdc3d60

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

tests/host/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ DEBUG += -DDEBUG_ESP_PORT=Serial
121121
DEBUG += -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_MDNS
122122
endif
123123

124-
CXXFLAGS += $(DEBUG) -std=c++11 -Wall -Werror -coverage $(OPTZ) -fno-common -g $(M32)
125-
CFLAGS += -std=c99 -Wall -Werror -coverage $(OPTZ) -fno-common -g $(M32)
124+
FLAGS += $(DEBUG) -Wall -Werror -coverage $(OPTZ) -fno-common -g $(M32)
125+
FLAGS += -DLWIP_IPV6=0
126+
CXXFLAGS += -std=c++11 $(FLAGS)
127+
CFLAGS += -std=c99 $(FLAGS)
126128
LDFLAGS += -coverage $(OPTZ) -g $(M32)
127129
VALGRINDFLAGS += --leak-check=full --track-origins=yes --error-limit=no --show-leak-kinds=all --error-exitcode=999
128130
CXXFLAGS += -Wno-error=format-security # cores/esp8266/Print.cpp:42:24: error: format not a string literal and no format arguments [-Werror=format-security] -- (os_printf_plus(not_the_best_way))

tests/host/common/MockWiFiServer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" const ip_addr_t ip_addr_any = IPADDR4_INIT(IPADDR_ANY);
4444

4545
// lwIP API side of WiFiServer
4646

47-
WiFiServer::WiFiServer (IPAddress addr, uint16_t port)
47+
WiFiServer::WiFiServer (const IPAddress& addr, uint16_t port)
4848
{
4949
(void)addr;
5050
if (port < 1024)

tests/host/common/include/ClientContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class ClientContext
9898
}
9999
}
100100

101-
int connect(ip_addr_t* addr, uint16_t port)
101+
int connect(const ip_addr_t* addr, uint16_t port)
102102
{
103103
return mockConnect(addr->addr, _sock, port);
104104
}

tests/host/common/include/UdpContext.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ class UdpContext
5555
}
5656
}
5757

58-
bool connect (ip_addr_t addr, uint16_t port)
58+
bool connect (const ip_addr_t* addr, uint16_t port)
5959
{
60-
_dst = addr;
60+
_dst = *addr;
6161
_dstport = port;
6262
return true;
6363
}
6464

65-
bool listen(ip_addr_t addr, uint16_t port)
65+
bool listen(const ip_addr_t* addr, uint16_t port)
6666
{
67-
bool ret = mockUDPListen(_sock, addr.addr, port, staticMCastAddr);
67+
bool ret = mockUDPListen(_sock, addr->addr, port, staticMCastAddr);
6868
register_udp(_sock, this);
6969
return ret;
7070
}

0 commit comments

Comments
 (0)