aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.cpp
diff options
context:
space:
mode:
authordexX7 <[email protected]>2015-03-25 12:09:17 +0100
committerdexX7 <[email protected]>2015-03-29 10:35:25 +0200
commitfc3979ac695f75f5a5cf2c97322eaebb9decddf8 (patch)
tree84d15e81b1008db66316b428d1120fe0f36b9e5f /src/test/test_bitcoin.cpp
parentInitialization: set fallback locale as environment variable (diff)
downloaddiscoin-fc3979ac695f75f5a5cf2c97322eaebb9decddf8.tar.xz
discoin-fc3979ac695f75f5a5cf2c97322eaebb9decddf8.zip
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/test/test_bitcoin.cpp')
-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 7d5207b11..5358e1866 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);
}