From 4159fa197bc69759ea092c1ba908fc440aac82d1 Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Fri, 14 Apr 2023 22:14:02 +0300 Subject: [PATCH] testing/ostest: make sure that pthread_rwlock timeout test is executed properly Signed-off-by: Petro Karashchenko --- testing/ostest/pthread_rwlock.c | 2 ++ 1 file changed, 2 insertions(+) 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;