History log of /openbsd-src/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c (Results 1 – 5 of 5)
Revision Date Author Comments
# 6cea90f6 13-May-2022 anton <anton@openbsd.org>

Output the relevant time specs before the assertion, in the hopes of
figuring out why this occasionally fails.


# c672e670 20-Dec-2019 cheloha <cheloha@openbsd.org>

Fix the sem_timedwait(3) test.

The recent clock_getres(2) changes made it so that clock_getres(2) returns
the granularity of the active timecounter. This is usually much finer
than that of hardcloc

Fix the sem_timedwait(3) test.

The recent clock_getres(2) changes made it so that clock_getres(2) returns
the granularity of the active timecounter. This is usually much finer
than that of hardclock(9), so we can no longer use clock_getres(2) to
fudge our upper timeout return bound. The test is failing because it
thinks our sem_timedwait(3) call is returning with too much latency.

We can still get the hardclock(9) granularity via the kern.clockrate
sysctl(2), though, so just use that to fudge the upper bound.

While here, we ought to be checking that we return after the requested
absolute timeout, not that we were asleep for a particular interval.

Breakage reported by mpi@.

ok mpi@

show more ...


# fd181be8 27-Apr-2018 pirofti <pirofti@openbsd.org>

Fix sem_timedwait regress test. Needs SA_RESTART to block now.

Hug and OK guenther@


# 737af275 22-Jan-2014 guenther <guenther@openbsd.org>

There can be resolution-worth of slop in two places, so accept that


# db068fc7 03-Mar-2012 guenther <guenther@openbsd.org>

Add tests for sem_timedwait()