Skip to content

Commit ca4c71c

Browse files
Zhaoningxnashif
authored andcommitted
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 <[email protected]>
1 parent 1325edf commit ca4c71c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/kernel/threads/thread_apis/src/test_threads_cancel_abort.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void test_delayed_thread_abort(void)
125125
{
126126
int current_prio = k_thread_priority_get(k_current_get());
127127

128+
execute_flag = 0;
128129
/* Make current thread preemptive */
129130
k_thread_priority_set(k_current_get(), K_PRIO_PREEMPT(2));
130131

0 commit comments

Comments
 (0)