Fix the dictionary unit test.

This commit is contained in:
Gunnar Beutner 2013-03-12 21:41:29 +01:00
parent 98ab009b91
commit 9baa10c45f
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ BOOST_AUTO_TEST_CASE(unnamed_order)
* inserted in. */ * inserted in. */
Value value; Value value;
int i = 0; int i = 0;
ObjectLock olock(dictionary);
BOOST_FOREACH(tie(tuples::ignore, value), dictionary) { BOOST_FOREACH(tie(tuples::ignore, value), dictionary) {
BOOST_CHECK(value == i); BOOST_CHECK(value == i);
i++; i++;