aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-12-02 13:11:21 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-12-02 13:11:21 +1000
commit49dc3a0f1aed095d9d42d574dfe585cb15b8fa8d (patch)
tree964fff388fb410c66d14d9ce308ce1906c1aca07
parenta65edb104d0168b55aaa0ebf6fc46c76b0ce288b (diff)
Make unit tests succeed with -DDEBUG_LOCKORDER
-rw-r--r--src/test/miner_tests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp
index 8001c4f65a..46c9ae021d 100644
--- a/src/test/miner_tests.cpp
+++ b/src/test/miner_tests.cpp
@@ -57,6 +57,8 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
CScript script;
uint256 hash;
+ LOCK(cs_main);
+
// Simple block creation, nothing special yet:
BOOST_CHECK(pblocktemplate = CreateNewBlockWithKey(reservekey));