]> granicus.if.org Git - icinga2/commitdiff
Fix another unit test bug.
authorGunnar Beutner <gunnar@beutner.name>
Tue, 12 Mar 2013 22:00:40 +0000 (23:00 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 12 Mar 2013 22:00:40 +0000 (23:00 +0100)
test/base-dictionary.cpp

index e19beab55cfa708c344ff25950c7dfe2142f44e8..d12d8fb8020fe939ed7c4af5c0e5452235e28b54 100644 (file)
@@ -71,6 +71,7 @@ BOOST_AUTO_TEST_CASE(unnamed)
        dictionary->Add("test2");
        dictionary->Add("test3");
 
+       ObjectLock olock(dictionary);
        BOOST_CHECK(distance(dictionary->Begin(), dictionary->End()) == 3);
 }