Skip to content

Commit 3a3ecc0

Browse files
committed
Initialization: setup environment before starting QT tests
The environment is prepared by the main thread to guard against invalid locale settings.
1 parent fc3979a commit 3a3ecc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/test/test_main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "config/bitcoin-config.h"
77
#endif
88

9+
#include "util.h"
910
#include "uritests.h"
1011

1112
#ifdef ENABLE_WALLET
@@ -27,6 +28,7 @@ Q_IMPORT_PLUGIN(qkrcodecs)
2728
// This is all you need to run all the tests
2829
int main(int argc, char *argv[])
2930
{
31+
SetupEnvironment();
3032
bool fInvalid = false;
3133

3234
// Don't remove this, it's needed to access

0 commit comments

Comments
 (0)