Commit 040dbc3e authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3710] Use undefined pthread behavior for FreeBSD.

This prevents failure of the CondVar unit tests which expect that the
pthread_cond_destroy returns error code if the other thread is blocked
on the conditional variable which is being destroyed.
parent 6b0532bc
......@@ -278,6 +278,17 @@ case "$host" in
# On FreeBSD10.1 pthread_cond_destroy doesn't work as documented, which
# causes the CondVarTest.destroyWhileWait test to fail. According to the
# pthread_cond_destroy documentation for FreeBSD, this function should
# return EBUSY error when there is a thread waiting for the conditional
# variable, whereas this function returned success code. We treat it here
# as an undefined behavior. Also note that this issue was only visible
# when gtest 1.7 was in use, because the previous versions of gtest
# didn't seem to have support for the death tests on FreeBSD. As a
# result, the test was not executed and the error didn't occur.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment