aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordexX7 <dexx@bitwatch.co>2015-03-25 12:09:17 +0100
committerdexX7 <dexx@bitwatch.co>2015-03-29 10:35:25 +0200
commitfc3979ac695f75f5a5cf2c97322eaebb9decddf8 (patch)
tree84d15e81b1008db66316b428d1120fe0f36b9e5f /src
parentba0fa0d9bca19c2bab34459249e4a79426683bf0 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/test/test_bitcoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index 7d5207b11e..5358e18668 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -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);
}