Skip to content

Commit 7494e09

Browse files
committed
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.
1 parent df45564 commit 7494e09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/test_bitcoin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ struct TestingSetup {
3030
boost::thread_group threadGroup;
3131

3232
TestingSetup() {
33+
SetupEnvironment();
3334
fPrintToDebugLog = false; // don't want to write to debug.log file
3435
fCheckBlockIndex = true;
3536
SelectParams(CBaseChainParams::UNITTEST);

0 commit comments

Comments
 (0)