aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordexX7 <dexx@bitwatch.co>2015-03-27 01:33:34 +0100
committerdexX7 <dexx@bitwatch.co>2015-04-18 16:06:22 +0200
commit323de27f4b6a9673902cb414c3b0e3879b1366e7 (patch)
tree86878516c1b1fe7936de3a115b049be235128806
parent7494e0915b1b6ab0d68b77a2f9140e365e41cef8 (diff)
downloadbitcoin-323de27f4b6a9673902cb414c3b0e3879b1366e7.tar.xz
Initialization: setup environment before starting QT tests
The environment is prepared by the main thread to guard against invalid locale settings.
-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 f2161c2f79..7d7282db17 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