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

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