tests: mem_protect/syscall: join stress threads after abort

Add a loop to join the stress threads after calling abort.
This is to make sure all stress threads have already stopped
before moving on. Simply for test hygiene.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2025-03-31 09:48:42 -07:00 committed by Benjamin Cabé
parent 2b13c780cb
commit 9ade47bbef

View File

@ -407,6 +407,10 @@ ZTEST(syscalls_extended, test_syscall_switch_stress)
k_thread_abort(&stress_threads[i]);
}
for (i = 0; i < NR_THREADS; i++) {
k_thread_join(&stress_threads[i], K_FOREVER);
}
printk("\n");
}