Skip to content

Commit 720897d

Browse files
nashifcfriedt
authored andcommitted
tests: increase stacks to allow coverage
Increase stack sizes to allow coverage to complete. Signed-off-by: Anas Nashif <[email protected]>
1 parent 6240b0d commit 720897d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/arch/arm/arm_interrupt/src/arm_interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static volatile int expected_reason = -1;
1616
static volatile int run_esf_validation;
1717
static volatile int esf_validation_rv;
1818
static volatile uint32_t expected_msp;
19-
static K_THREAD_STACK_DEFINE(esf_collection_stack, 2048);
19+
static K_THREAD_STACK_DEFINE(esf_collection_stack, 2048 + CONFIG_TEST_EXTRA_STACK_SIZE);
2020
static struct k_thread esf_collection_thread;
2121
#define MAIN_PRIORITY 7
2222
#define PRIORITY 5

tests/arch/arm/arm_thread_swap/src/arm_syscalls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define DB_VAL 0xDEADBEEF
2323

2424
static struct k_thread user_thread;
25-
static K_THREAD_STACK_DEFINE(user_thread_stack, 1024);
25+
static K_THREAD_STACK_DEFINE(user_thread_stack, 1024 + CONFIG_TEST_EXTRA_STACK_SIZE);
2626

2727
#include <zephyr/internal/syscall_handler.h>
2828
#include "test_syscalls.h"

tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
extern void z_move_thread_to_end_of_prio_q(struct k_thread *thread);
4040

4141
static struct k_thread alt_thread;
42-
static K_THREAD_STACK_DEFINE(alt_thread_stack, 1024);
42+
static K_THREAD_STACK_DEFINE(alt_thread_stack, 1024 + CONFIG_TEST_EXTRA_STACK_SIZE);
4343

4444
/* Status variable to indicate that context-switch has occurred. */
4545
bool volatile switch_flag;

tests/lib/net_buf/buf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void test_3_thread(void *arg1, void *arg2, void *arg3)
206206
k_sem_give(sema);
207207
}
208208

209-
static K_THREAD_STACK_DEFINE(test_3_thread_stack, 1024);
209+
static K_THREAD_STACK_DEFINE(test_3_thread_stack, 1024 + CONFIG_TEST_EXTRA_STACK_SIZE);
210210

211211
ZTEST(net_buf_tests, test_net_buf_3)
212212
{

0 commit comments

Comments
 (0)