tests: thread: Add an initialization

Add an initialization to the global variable to make sure testcases
can be ran correctly.

Signed-off-by: NingX Zhao <ningx.zhao@intel.com>
This commit is contained in:
NingX Zhao 2021-09-16 13:45:48 +08:00 committed by Anas Nashif
parent 1325edff48
commit ca4c71ca02

View File

@ -125,6 +125,7 @@ void test_delayed_thread_abort(void)
{
int current_prio = k_thread_priority_get(k_current_get());
execute_flag = 0;
/* Make current thread preemptive */
k_thread_priority_set(k_current_get(), K_PRIO_PREEMPT(2));