diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-12-02 13:11:21 +1000 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-12-02 13:11:21 +1000 |
commit | 49dc3a0f1aed095d9d42d574dfe585cb15b8fa8d (patch) | |
tree | 964fff388fb410c66d14d9ce308ce1906c1aca07 /src/test/miner_tests.cpp | |
parent | a65edb104d0168b55aaa0ebf6fc46c76b0ce288b (diff) |
Make unit tests succeed with -DDEBUG_LOCKORDER
Diffstat (limited to 'src/test/miner_tests.cpp')
-rw-r--r-- | src/test/miner_tests.cpp | 2 |
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)); |