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:
parent
df45564cf0
commit
7494e0915b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue