Skip to content

Commit 24905f5

Browse files
author
Veijo Pesonen
committed
Declares gt netsocket test case buffers as static
Original patch ARMmbed/wifi-x-nucleo-idw01m1#17
1 parent 2e5e23f commit 24905f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

TESTS/netsocket/tcp/tcpsocket_thread_per_socket_safety.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static const int SIGNAL_SIGIO1 = 0x1;
2929
static const int SIGNAL_SIGIO2 = 0x2;
3030
static const int SIGIO_TIMEOUT = 5000; //[ms]
3131

32-
Thread thread;
32+
Thread thread(osPriorityNormal, tcp_global::TCP_OS_STACK_SIZE);
3333
volatile bool running = true;
3434
}
3535

@@ -50,8 +50,8 @@ static void check_const_len_rand_sequence()
5050
sock.sigio(callback(_sigio_handler1, Thread::gettid()));
5151

5252
static const int BUFF_SIZE = 10;
53-
char rx_buff[BUFF_SIZE] = {0};
54-
char tx_buff[BUFF_SIZE] = {0};
53+
static char rx_buff[BUFF_SIZE] = {0};
54+
static char tx_buff[BUFF_SIZE] = {0};
5555

5656

5757
int bytes2process;
@@ -107,8 +107,8 @@ static void check_var_len_rand_sequence()
107107
sock.sigio(callback(_sigio_handler2, Thread::gettid()));
108108

109109
static const int BUFF_SIZE = 1001;
110-
char rx_buff[BUFF_SIZE];
111-
char tx_buff[BUFF_SIZE];
110+
static char rx_buff[BUFF_SIZE];
111+
static char tx_buff[BUFF_SIZE];
112112
static const int pkt_size_diff = 100;
113113

114114
int bytes2process;

0 commit comments

Comments
 (0)