Skip to content
Commit 81ca5090 authored by Jaxson Han's avatar Jaxson Han Committed by Carles Cufí
Browse files

tests: kernel: spinlock: Fix test_trylock thread reusable issue



The test_trylock reuses the cpu1_thread, but there is no way for it to
exit. This will cause the thread created twice, as a result, two cpu
running the same thread simultaneously cause an unexpected crash.

Fix this by adding initialization of resources and also the exit for the
cpu1_thread.

Signed-off-by: default avatarJaxson Han <jaxson.han@arm.com>
parent cf71de42
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment