Skip to content

Commit

Permalink
tests: adjust stack size for qemu_x86's coverage test
Browse files Browse the repository at this point in the history
for SDK 0.10.0, it consumes more stack size when coverage
enabled, so adjust stack size to fix stack overflow issue.

Fixes: zephyrproject-rtos#15206.

Signed-off-by: Wentong Wu <[email protected]>
  • Loading branch information
wentongwu authored and nashif committed Apr 11, 2019
1 parent aa9f0ec commit 3e255e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kernel/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ config SCHED_CPU_MASK

config MAIN_STACK_SIZE
int "Size of stack for initialization and main thread"
default 640 if RISCV32
default 2048 if COVERAGE_GCOV
default 1024 if X86
default 512 if ZTEST
default 1024
help
Expand Down
1 change: 0 additions & 1 deletion tests/kernel/mem_protect/stackprot/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ CONFIG_STACK_CANARIES=y
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MAIN_THREAD_PRIORITY=7
CONFIG_MAIN_STACK_SIZE=640
CONFIG_TEST_USERSPACE=y

0 comments on commit 3e255e9

Please sign in to comment.