[icinga-checkins] icinga.org: icinga2/master: Fix the dictionary unit test.

git at icinga.org git at icinga.org
Tue Mar 12 21:41:46 CET 2013


Module: icinga2
Branch: master
Commit: 9baa10c45ffe0f503c680505a2227d257660f9f2
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=9baa10c45ffe0f503c680505a2227d257660f9f2

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Mar 12 21:41:29 2013 +0100

Fix the dictionary unit test.

---

 test/base-dictionary.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/test/base-dictionary.cpp b/test/base-dictionary.cpp
index cbb87f4..e19beab 100644
--- a/test/base-dictionary.cpp
+++ b/test/base-dictionary.cpp
@@ -85,6 +85,7 @@ BOOST_AUTO_TEST_CASE(unnamed_order)
 	 * inserted in. */
 	Value value;
 	int i = 0;
+	ObjectLock olock(dictionary);
 	BOOST_FOREACH(tie(tuples::ignore, value), dictionary) {
 		BOOST_CHECK(value == i);
 		i++;





More information about the icinga-checkins mailing list