]> granicus.if.org Git - icinga2/commitdiff
Fix the dictionary unit test.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 12 Mar 2013 20:41:29 +0000 (21:41 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 12 Mar 2013 20:41:44 +0000 (21:41 +0100)
test/base-dictionary.cpp

index cbb87f47bfc5d337ac2d87e30fd224a7f2269344..e19beab55cfa708c344ff25950c7dfe2142f44e8 100644 (file)
@@ -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++;