aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authordexX7 <dexx@bitwatch.co>2015-03-27 01:33:34 +0100
committerdexX7 <dexx@bitwatch.co>2015-03-29 10:35:35 +0200
commit3a3ecc02e55ba955ee535d645412ebb66295939a (patch)
treefe608958334bf9c86708a5b3d266f31e52e09857 /src/qt
parentfc3979ac695f75f5a5cf2c97322eaebb9decddf8 (diff)
Initialization: setup environment before starting QT tests
The environment is prepared by the main thread to guard against invalid locale settings.
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/test/test_main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index da5f074390..bb768f1325 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -6,6 +6,7 @@
#include "config/bitcoin-config.h"
#endif
+#include "util.h"
#include "uritests.h"
#ifdef ENABLE_WALLET
@@ -27,6 +28,7 @@ Q_IMPORT_PLUGIN(qkrcodecs)
// This is all you need to run all the tests
int main(int argc, char *argv[])
{
+ SetupEnvironment();
bool fInvalid = false;
// Don't remove this, it's needed to access