From ba75924c28cce39a42776f016669fc9a16816f26 Mon Sep 17 00:00:00 2001 From: Veijo Pesonen Date: Thu, 7 Feb 2019 12:01:09 +0200 Subject: [PATCH 1/3] tests-netsocket-tls: TLSSOCKET_ECHOTEST deletes socket on failure case --- TESTS/netsocket/tls/tlssocket_echotest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TESTS/netsocket/tls/tlssocket_echotest.cpp b/TESTS/netsocket/tls/tlssocket_echotest.cpp index b7b91b1ef4..56f8fa7fbd 100644 --- a/TESTS/netsocket/tls/tlssocket_echotest.cpp +++ b/TESTS/netsocket/tls/tlssocket_echotest.cpp @@ -63,8 +63,8 @@ void TLSSOCKET_ECHOTEST() if (tlssocket_connect_to_echo_srv(*sock) != NSAPI_ERROR_OK) { printf("Error from tlssocket_connect_to_echo_srv\n"); TEST_FAIL(); - return; delete sock; + return; } int recvd; From 099cbb1d3028b3438f9afa9f18ab859507823cc9 Mon Sep 17 00:00:00 2001 From: Veijo Pesonen Date: Thu, 7 Feb 2019 12:04:09 +0200 Subject: [PATCH 2/3] tests-network-interface: drops unreferenced variable --- TESTS/network/interface/networkinterface_status.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/TESTS/network/interface/networkinterface_status.cpp b/TESTS/network/interface/networkinterface_status.cpp index 32d1a2bd8e..f19a31fa9b 100644 --- a/TESTS/network/interface/networkinterface_status.cpp +++ b/TESTS/network/interface/networkinterface_status.cpp @@ -137,8 +137,6 @@ void NETWORKINTERFACE_STATUS_NONBLOCK() void NETWORKINTERFACE_STATUS_GET() { - nsapi_connection_status_t status; - net = NetworkInterface::get_default_instance(); net->set_blocking(true); From 8bf6c6b9bfc27dcb25801ab9aa02efcca40dd9f1 Mon Sep 17 00:00:00 2001 From: Veijo Pesonen Date: Thu, 7 Feb 2019 12:17:08 +0200 Subject: [PATCH 3/3] platform: includes string.h needed by memcpy and strlen --- platform/mbed_board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/mbed_board.c b/platform/mbed_board.c index 4b3844e2a4..9982182940 100644 --- a/platform/mbed_board.c +++ b/platform/mbed_board.c @@ -15,6 +15,7 @@ * limitations under the License. */ #include +#include #include "hal/gpio_api.h" #include "platform/mbed_wait_api.h" #include "platform/mbed_toolchain.h"