diff --git a/tests/kernel/sched/schedule_api/src/test_sched_timeslice_reset.c b/tests/kernel/sched/schedule_api/src/test_sched_timeslice_reset.c index 907083414980..15e7e996b5ab 100644 --- a/tests/kernel/sched/schedule_api/src/test_sched_timeslice_reset.c +++ b/tests/kernel/sched/schedule_api/src/test_sched_timeslice_reset.c @@ -6,7 +6,7 @@ #include -#define STACK_SIZE 512 +#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) #define NUM_THREAD 3 static K_THREAD_STACK_ARRAY_DEFINE(tstack, NUM_THREAD, STACK_SIZE); /* slice size in millisecond*/