diff --git a/testing/ostest/spinlock.c b/testing/ostest/spinlock.c index df691d7ca..7d66b64b6 100644 --- a/testing/ostest/spinlock.c +++ b/testing/ostest/spinlock.c @@ -149,7 +149,11 @@ static inline void run_test_thread( { param[i].pub = &pub; param[i].delta = 0; - pthread_create(&tid[i], NULL, thread_func, ¶m[i]); + ret = pthread_create(&tid[i], NULL, thread_func, ¶m[i]); + if (ret != 0) + { + ASSERT(false); + } } ret = pthread_barrier_wait(&pub.barrier);