drd/tests/trylock, FreeBSD: Fix a hang
commit20dc7278512cbe530dc722ed18232915bfe4ab8b
authorBart Van Assche <bvanassche@acm.org>
Sun, 12 Apr 2020 21:28:57 +0000 (12 14:28 -0700)
committerBart Van Assche <bvanassche@acm.org>
Sun, 12 Apr 2020 22:20:13 +0000 (12 15:20 -0700)
tree91ea7f4659bf8231fcc92e87ec11529aa43f7b59
parent2381e043544b1e9e9c72e272b9e9244a43682357
drd/tests/trylock, FreeBSD: Fix a hang

The test code in drd/tests/trylock.c attempts to write-lock a POSIX rwlock
twice. The code expects the second attempt to return an error, but POSIX
doesn't require that behaviour, and FreeBSD's implementation deadlocks
instead.

See also https://bugs.kde.org/show_bug.cgi?id=403212

Reported-by: Mark Johnston <markj@FreeBSD.org>
NEWS
drd/tests/trylock.c
drd/tests/trylock.stderr.exp