tests: fatal: fix stack size to k_thread_create

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-07-15 11:24:22 -07:00 committed by Anas Nashif
commit c3fce81d13

View file

@ -162,7 +162,8 @@ void main(void)
} }
TC_PRINT("test alt thread 3: initiate kernel panic\n"); TC_PRINT("test alt thread 3: initiate kernel panic\n");
k_thread_create(&alt_thread, alt_stack, sizeof(alt_stack), k_thread_create(&alt_thread, alt_stack,
K_THREAD_STACK_SIZEOF(alt_stack),
(k_thread_entry_t)alt_thread3, (k_thread_entry_t)alt_thread3,
NULL, NULL, NULL, K_PRIO_COOP(PRIORITY), 0, NULL, NULL, NULL, K_PRIO_COOP(PRIORITY), 0,
K_NO_WAIT); K_NO_WAIT);