diff options
author | 2014-01-22 04:31:45 +0000 | |
---|---|---|
committer | 2014-01-22 04:31:45 +0000 | |
commit | 737af275fbf18dc26e38f3404bf2d0815c9b81c4 (patch) | |
tree | eb7124902637407b3151389728e757511d8abba9 | |
parent | Switch metadata saves from the system workq to the system taskq. (diff) | |
download | wireguard-openbsd-737af275fbf18dc26e38f3404bf2d0815c9b81c4.tar.xz wireguard-openbsd-737af275fbf18dc26e38f3404bf2d0815c9b81c4.zip |
There can be resolution-worth of slop in two places, so accept that
-rw-r--r-- | regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <mpi@openbsd.org>, 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)); |