Skip to content

Commit 9198b9d

Browse files
nashifcfriedt
authored andcommitted
tests: increase stack sizes to support coverage
Increase stack sizes to allow coverage to complete. Signed-off-by: Anas Nashif <[email protected]>
1 parent de8200c commit 9198b9d

File tree

11 files changed

+12
-15
lines changed

11 files changed

+12
-15
lines changed

tests/arch/common/interrupt/src/interrupt_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <soc.h>
1212
#endif
1313

14-
#define STACK_SIZE 1024
14+
#define STACK_SIZE 1024 + CONFIG_TEST_EXTRA_STACK_SIZE
1515
#define NUM_WORK 4
1616

1717
static struct k_work offload_work[NUM_WORK];

tests/kernel/context/prj.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
CONFIG_IRQ_OFFLOAD=y
22
CONFIG_ZTEST=y
3-
#CONFIG_MAIN_STACK_SIZE=1024
4-
#CONFIG_ZTEST_STACK_SIZE=2048
5-
#CONFIG_IDLE_STACK_SIZE=512
63
CONFIG_MP_MAX_NUM_CPUS=1

tests/kernel/context/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
#include <soc.h>
3333
#endif
3434

35-
#define THREAD_STACKSIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
36-
#define THREAD_STACKSIZE2 (384 + CONFIG_TEST_EXTRA_STACK_SIZE)
35+
#define THREAD_STACKSIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
36+
#define THREAD_STACKSIZE2 (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
3737
#define THREAD_PRIORITY 4
3838

3939
#define THREAD_SELF_CMD 0

tests/kernel/mem_protect/stackprot/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ CONFIG_STACK_CANARIES=y
33
CONFIG_ENTROPY_GENERATOR=y
44
CONFIG_TEST_RANDOM_GENERATOR=y
55
CONFIG_TEST_USERSPACE=y
6-
CONFIG_MAIN_STACK_SIZE=2048
6+
CONFIG_MAIN_STACK_SIZE=4096

tests/kernel/pipe/pipe_api/src/concurrency.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ZTEST_SUITE(k_pipe_concurrency, NULL, NULL, NULL, NULL, NULL);
1515
static const int partial_wait_time = 2000;
1616
#define DUMMY_DATA_SIZE 16
1717
static struct k_thread thread;
18-
static K_THREAD_STACK_DEFINE(stack, 1024);
18+
static K_THREAD_STACK_DEFINE(stack, 1024 + CONFIG_TEST_EXTRA_STACK_SIZE);
1919
static struct k_pipe pipe;
2020

2121
static void thread_close(void *arg1, void *arg2, void *arg3)

tests/kernel/sched/metairq/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif
3131

3232

33-
#define STACKSIZE 1024
33+
#define STACKSIZE 1024 + CONFIG_TEST_EXTRA_STACK_SIZE
3434
#define DEFINE_PARTICIPANT_THREAD(id) \
3535
K_THREAD_STACK_DEFINE(thread_##id##_stack_area, STACKSIZE); \
3636
struct k_thread thread_##id##_thread_data; \

tests/kernel/smp_abort/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#endif
1515

1616
#define NUM_THREADS CONFIG_MP_MAX_NUM_CPUS
17-
#define STACK_SIZE 1024
17+
#define STACK_SIZE 1024 + CONFIG_TEST_EXTRA_STACK_SIZE
1818

1919
K_THREAD_STACK_ARRAY_DEFINE(thread_stack, NUM_THREADS, STACK_SIZE);
2020
struct k_thread thread[NUM_THREADS];

tests/kernel/smp_suspend/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#error "SMP test requires at least two CPUs!"
1313
#endif
1414

15-
#define STACK_SIZE 1024
15+
#define STACK_SIZE 1024 + CONFIG_TEST_EXTRA_STACK_SIZE
1616

1717
#define NUM_THREADS 6
1818

tests/kernel/threads/dynamic_thread_stack/prj.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ CONFIG_MAX_THREAD_BYTES=6
55
CONFIG_DYNAMIC_THREAD=y
66
CONFIG_DYNAMIC_THREAD_POOL_SIZE=2
77
CONFIG_DYNAMIC_THREAD_ALLOC=y
8-
CONFIG_ZTEST_STACK_SIZE=2048
9-
CONFIG_MAIN_STACK_SIZE=2048
8+
CONFIG_ZTEST_STACK_SIZE=4096
9+
CONFIG_MAIN_STACK_SIZE=4096
1010

1111
CONFIG_HW_STACK_PROTECTION=n
1212
CONFIG_TEST_HW_STACK_PROTECTION=n

tests/kernel/threads/tls/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <zephyr/sys/util.h>
1313

1414
#define NUM_THREADS 3
15-
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
15+
#define STACK_SIZE (2048 + CONFIG_TEST_EXTRA_STACK_SIZE)
1616

1717
#define STATIC_DATA8 0x7FU
1818
#define STATIC_DATA32 0xABCDEF00U

0 commit comments

Comments
 (0)