From 336f07576ea188a8b5f11def356ea021868c0b06 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Wed, 22 Jan 2014 04:31:46 +0000 Subject: There can be resolution-worth of slop in two places, so accept that --- regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'regress/lib') diff --git a/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c b/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c index 38e0ebe18c7..13a1d34a181 100644 --- a/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c +++ b/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sem_timedwait.c,v 1.1 2012/03/03 11:08:12 guenther Exp $ */ +/* $OpenBSD: sem_timedwait.c,v 1.2 2014/01/22 04:31:45 guenther Exp $ */ /* * Martin Pieuchot , 2011. Public Domain. */ @@ -81,6 +81,7 @@ main(int argc, char **argv) else timespecsub(&ts, &ts2, &ts); CHECKr(clock_getres(CLOCK_REALTIME, &ts2)); + timespecadd(&ts2, &ts2, &ts2); /* 2 * resolution slop */ ASSERT(timespeccmp(&ts, &ts2, < )); CHECKe(sem_destroy(&sem)); -- cgit v1.2.3