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 ba0fa0d9bc
commit fc3979ac69
No known key found for this signature in database
GPG key ID: 7675E31CF5719832

View file

@ -28,6 +28,7 @@ extern void noui_connect();
BasicTestingSetup::BasicTestingSetup() BasicTestingSetup::BasicTestingSetup()
{ {
SetupEnvironment();
fPrintToDebugLog = false; // don't want to write to debug.log file fPrintToDebugLog = false; // don't want to write to debug.log file
SelectParams(CBaseChainParams::MAIN); SelectParams(CBaseChainParams::MAIN);
} }