testing/ostest: make sure that pthread_rwlock timeout test is executed properly

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-04-14 22:14:02 +03:00 committed by Alin Jerpelea
parent 2655f80dd7
commit 4159fa197b

View File

@ -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;