bitcoin/bitcoin — pull request #3578 by gavinandresen (2014-01-23 19:23:02+00:00)
Title: Unit test fixes for AssertLockHeld / -DDEBUG_LOCKORDER

Unit tests would fail if compiled with -DDEBUG_LOCKORDER (AssertLockHeld()
would fail; AssertLockHeld() relies on the DEBUG_LOCKORDER code to keep
track of locks held).

Fixed by LOCK'ing the wallet mutex in the unit tests that manipulate the
wallet.

This only changes the unit tests, so I plan on pulling as soon as pull-tester is happy.