BIND 10 master, updated. a5a98d2f3e44ebec0de30f4f0905b83ca3a5df75 [master] Enable CondVarTest.destroyWhileWait where it's possible to run it
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 26 06:35:18 UTC 2012
The branch, master has been updated
via a5a98d2f3e44ebec0de30f4f0905b83ca3a5df75 (commit)
from f49a40682835963334f3d5f2014bfed6b0895400 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a5a98d2f3e44ebec0de30f4f0905b83ca3a5df75
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Oct 26 12:03:28 2012 +0530
[master] Enable CondVarTest.destroyWhileWait where it's possible to run it
-----------------------------------------------------------------------
Summary of changes:
src/lib/util/threads/tests/condvar_unittest.cc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/util/threads/tests/condvar_unittest.cc b/src/lib/util/threads/tests/condvar_unittest.cc
index 8b1fe54..1e04efa 100644
--- a/src/lib/util/threads/tests/condvar_unittest.cc
+++ b/src/lib/util/threads/tests/condvar_unittest.cc
@@ -12,6 +12,8 @@
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
+#include <config.h>
+
#include <exceptions/exceptions.h>
#include <util/threads/sync.h>
@@ -137,8 +139,8 @@ signalAndWait(CondVar* condvar, Mutex* mutex) {
condvar->wait(*mutex);
}
-// Temporarily disabled: Solaris seems to make this behavior "undefined"
-TEST_F(CondVarTest, DISABLED_destroyWhileWait) {
+#ifndef HAS_UNDEFINED_PTHREAD_BEHAVIOR
+TEST_F(CondVarTest, destroyWhileWait) {
// We'll destroy a CondVar object while the thread is still waiting
// on it. This will trigger an assertion failure.
EXPECT_DEATH_IF_SUPPORTED({
@@ -148,6 +150,7 @@ TEST_F(CondVarTest, DISABLED_destroyWhileWait) {
cond.wait(mutex_);
}, "");
}
+#endif // !HAS_UNDEFINED_PTHREAD_BEHAVIOR
#ifdef ENABLE_DEBUG
More information about the bind10-changes
mailing list