ztest: apply extra stack size to ztest stack
The directive exists for platforms that require more stack space than usual. However, it wasn't being applied to the ztest thread stack which ztest-enabled cases are run on. Fixes numerous failures on xtensa simulator targets. Change-Id: Iafa84de002421f03729c0f0cdeefdea51842ae32 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
a883722fb6
commit
b53145c6bc
|
@ -128,7 +128,8 @@ out:
|
|||
#if CONFIG_ZTEST_STACKSIZE & (STACK_ALIGN - 1)
|
||||
#error "CONFIG_ZTEST_STACKSIZE must be a multiple of the stack alignment"
|
||||
#endif
|
||||
static char __stack thread_stack[CONFIG_ZTEST_STACKSIZE];
|
||||
static char __stack thread_stack[CONFIG_ZTEST_STACKSIZE +
|
||||
CONFIG_TEST_EXTRA_STACKSIZE];
|
||||
|
||||
static int test_result;
|
||||
static struct k_sem test_end_signal;
|
||||
|
|
Loading…
Reference in a new issue