From a08a42cf27769eddd3af55248655c5fe2e8d9f8b Mon Sep 17 00:00:00 2001 From: Veijo Pesonen Date: Fri, 14 Sep 2018 12:03:36 +0300 Subject: [PATCH] Declares gt netsocket test case buffers as static Original patch https://github.com/ARMmbed/wifi-x-nucleo-idw01m1/issues/17 --- .../tcp/tcpsocket_thread_per_socket_safety.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TESTS/netsocket/tcp/tcpsocket_thread_per_socket_safety.cpp b/TESTS/netsocket/tcp/tcpsocket_thread_per_socket_safety.cpp index 04172ef3d30..b5089491798 100644 --- a/TESTS/netsocket/tcp/tcpsocket_thread_per_socket_safety.cpp +++ b/TESTS/netsocket/tcp/tcpsocket_thread_per_socket_safety.cpp @@ -29,7 +29,7 @@ static const int SIGNAL_SIGIO1 = 0x1; static const int SIGNAL_SIGIO2 = 0x2; static const int SIGIO_TIMEOUT = 5000; //[ms] -Thread thread; +Thread thread(osPriorityNormal, tcp_global::TCP_OS_STACK_SIZE); volatile bool running = true; } @@ -50,8 +50,8 @@ static void check_const_len_rand_sequence() sock.sigio(callback(_sigio_handler1, Thread::gettid())); static const int BUFF_SIZE = 10; - char rx_buff[BUFF_SIZE] = {0}; - char tx_buff[BUFF_SIZE] = {0}; + static char rx_buff[BUFF_SIZE] = {0}; + static char tx_buff[BUFF_SIZE] = {0}; int bytes2process; @@ -107,8 +107,8 @@ static void check_var_len_rand_sequence() sock.sigio(callback(_sigio_handler2, Thread::gettid())); static const int BUFF_SIZE = 1001; - char rx_buff[BUFF_SIZE]; - char tx_buff[BUFF_SIZE]; + static char rx_buff[BUFF_SIZE]; + static char tx_buff[BUFF_SIZE]; static const int pkt_size_diff = 100; int bytes2process;