Skip to content

Commit fc3979a

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 ba0fa0d commit fc3979a

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
@@ -28,6 +28,7 @@ extern void noui_connect();
2828

2929
BasicTestingSetup::BasicTestingSetup()
3030
{
31+
SetupEnvironment();
3132
fPrintToDebugLog = false; // don't want to write to debug.log file
3233
SelectParams(CBaseChainParams::MAIN);
3334
}

0 commit comments

Comments
 (0)