diff --git a/testing/ostest/pthread_rwlock.c b/testing/ostest/pthread_rwlock.c index 3b2b492cc..3c1bc7c3e 100644 --- a/testing/ostest/pthread_rwlock.c +++ b/testing/ostest/pthread_rwlock.c @@ -327,6 +327,8 @@ static FAR void *timeout_thread2(FAR void *data) struct timespec time; int status; + pthread_yield(); + status = clock_gettime(CLOCK_REALTIME, &time); time.tv_sec += 2;