History log of /openbsd-src/regress/lib/libpthread/pthread_mutex/pthread_mutex.c (Results 1 – 10 of 10)
Revision Date Author Comments
# a86e1260 24-Mar-2012 guenther <guenther@openbsd.org>

Another tiny test case


# 078d8877 23-Feb-2012 guenther <guenther@openbsd.org>

Check that PTHREAD_MUTEX_NORMAL mutexes will self-deadlock and that
pthread_mutex_timedlock() will block and then timeout on self-deadlock


# c9c91f29 20-Feb-2012 guenther <guenther@openbsd.org>

Round-robin behavior isn't guaranteed by SCHED_OTHER and the kernel
doesn't have SCHED_FIFO or SCHED_RR support, so use sleep(1) to 'ensure'
the second thread gets the lock when expected


# 18bdda7b 23-Sep-2011 uwe <uwe@openbsd.org>

Add a test for recursive pthread_mutex_trylock()

ok guenther@


# 308936c6 19-Dec-2005 tedu <tedu@openbsd.org>

after mutex_unlock, there's no guarantee that a waiting thread will
start running. calling pthread_yield makes test pass with rthreads


# d0774bb2 30-Oct-2005 fgsch <fgsch@openbsd.org>

-Wall cleanup.


# db3296cf 31-Jul-2003 deraadt <deraadt@openbsd.org>

various cleanups; david says results are same


# 523ac096 03-Nov-2001 marc <marc@openbsd.org>

Fix pthread_mutex regression test... undefined behavior does not
mean != EPERM in one test, minor changes to recursive mutex test.

remove printf in signal test signal handler, run test long enough
t

Fix pthread_mutex regression test... undefined behavior does not
mean != EPERM in one test, minor changes to recursive mutex test.

remove printf in signal test signal handler, run test long enough
to ensure signal hander is called at least twice, reduce output.

Note: running these tests over a remote console may indicate bogus
falures due to console output latency. Any test that takes longer
than 5 seconds to complete may be flagged as a failure.

show more ...


# 8445c537 20-Sep-2001 todd <todd@openbsd.org>

per man page and gcc 3.0.1, exit requires prototype from stdlib.h


# b2ea75c1 15-Aug-2001 fgsch <fgsch@openbsd.org>

Regression tests for libc_r (pthreads) library.
Thanks to pval@ for resolving the license stuff.