Initialization: setup environment before starting tests

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.
This commit is contained in:
dexX7 2015-03-25 12:09:17 +01:00
parent df45564cf0
commit 7494e0915b
No known key found for this signature in database
GPG Key ID: 7675E31CF5719832
1 changed files with 1 additions and 0 deletions

View File

@ -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);