Unit test fixes for AssertLockHeld / -DDEBUG_LOCKORDER #3578

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:unittest_debuglockorder changing 3 files +11 −0
  1. gavinandresen commented at 7:23 PM on January 23, 2014: contributor

    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.

  2. laanwj commented at 8:20 PM on January 23, 2014: member

    Rpctests.cpp shouldn't depend on the wallet, otherwise it won't compile with --disable-wallet anymore (if it is really necessary you could put an #ifdef ENABLE_WALLET around the code in question, or even better, move that code to rpc_wallet_tests.cpp which exists for that purpose)

  3. 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.
    fd67424c82
  4. gavinandresen commented at 3:50 PM on January 24, 2014: contributor

    Rebased and changed to work when configured --disable-wallet (lock wallet moved from CallRPC to wallet_tests).

  5. laanwj commented at 3:59 PM on January 24, 2014: member

    ACK

  6. jgarzik commented at 4:26 PM on January 24, 2014: contributor

    ACK

  7. BitcoinPullTester commented at 4:30 PM on January 24, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/fd67424c829b9bb0ed7f4a53040524c560262810 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  8. gavinandresen referenced this in commit d3d753578c on Jan 24, 2014
  9. gavinandresen merged this on Jan 24, 2014
  10. gavinandresen closed this on Jan 24, 2014

  11. gavinandresen deleted the branch on Mar 13, 2014
  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me