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-04-18 16:06:20 +0200
commit7494e0915b1b6ab0d68b77a2f9140e365e41cef8 (patch)
tree07ce26aa2432526ca68f90792275de22e8d6b1ce /src
parentdf45564cf0ad3b591d4eb8cc2354093bcb7df14c (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 5269e3bda7..30626267ff 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -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);