Skip to content

Commit addd2b2

Browse files
authored
Merge pull request #3548 from bridadan/reduce_stack_network_parallel_tests
Reduce thread stack size for parallel network tests
2 parents 04a31f3 + bdd0ff4 commit addd2b2

File tree

2 files changed

+8
-0
lines changed
  • features/FEATURE_LWIP/TESTS/mbedmicro-net

2 files changed

+8
-0
lines changed

features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_echo_parallel/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class Echo {
4242
Thread thread;
4343

4444
public:
45+
// Limiting stack size to 1k
46+
Echo(): thread(osPriorityNormal, 1024) {
47+
}
48+
4549
void start() {
4650
osStatus status = thread.start(callback(this, &Echo::echo));
4751
TEST_ASSERT_EQUAL(osOK, status);

features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo_parallel/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class Echo {
4646
Thread thread;
4747

4848
public:
49+
// Limiting stack size to 1k
50+
Echo(): thread(osPriorityNormal, 1024) {
51+
}
52+
4953
void start() {
5054
osStatus status = thread.start(callback(this, &Echo::echo));
5155
TEST_ASSERT_EQUAL(osOK, status);

0 commit comments

Comments
 (0)