Skip to content

Commit bdd0ff4

Browse files
committed
Reduce thread stack size for parallel network tests
This commit reduces the thread stack from 2k to 1k for each thread in the parallel network tests. This allows the test to run on more constrained devices (like the LPC1768).
1 parent 3a326c0 commit bdd0ff4

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)