mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue