Browse Source

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.
0.13
dexX7 10 years ago
parent
commit
fc3979ac69
No known key found for this signature in database
GPG Key ID: 7675E31CF5719832
  1. 1
      src/test/test_bitcoin.cpp

1
src/test/test_bitcoin.cpp

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

Loading…
Cancel
Save