From 7fae2bbc1897d339b3ba0139a804d6faf9599b98 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Mon, 29 Jul 2019 20:47:42 -0700 Subject: [PATCH] tests: increase main stack size for x86 with ztest Some options like stack canaries use more stack space, and on x86 this is not quite enough for ztest's main thread stack to be 512 bytes. Signed-off-by: Andrew Boie --- kernel/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index 27f386a2a06..4bea9e23a0a 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -148,7 +148,7 @@ config SCHED_CPU_MASK config MAIN_STACK_SIZE int "Size of stack for initialization and main thread" default 2048 if COVERAGE_GCOV - default 512 if ZTEST && !RISCV + default 512 if ZTEST && !(RISCV || X86) default 1024 help When the initialization is complete, the thread executing it then