Skip to content

Commit

Permalink
Initialization: setup environment before starting tests
Browse files Browse the repository at this point in the history
The environment is prepared by the main thread to guard against invalid locale settings and to prevent deinitialization issues of Boost path, which can result in app crashes.
  • Loading branch information
dexX7 committed Apr 18, 2015
1 parent df45564 commit 7494e09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/test_bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct TestingSetup {
boost::thread_group threadGroup;

TestingSetup() {
SetupEnvironment();
fPrintToDebugLog = false; // don't want to write to debug.log file
fCheckBlockIndex = true;
SelectParams(CBaseChainParams::UNITTEST);
Expand Down

0 comments on commit 7494e09

Please sign in to comment.