diff options
| author | dexX7 <[email protected]> | 2015-03-27 01:33:34 +0100 |
|---|---|---|
| committer | dexX7 <[email protected]> | 2015-03-29 10:35:35 +0200 |
| commit | 3a3ecc02e55ba955ee535d645412ebb66295939a (patch) | |
| tree | fe608958334bf9c86708a5b3d266f31e52e09857 /src/qt/test/test_main.cpp | |
| parent | Initialization: setup environment before starting tests (diff) | |
| download | discoin-3a3ecc02e55ba955ee535d645412ebb66295939a.tar.xz discoin-3a3ecc02e55ba955ee535d645412ebb66295939a.zip | |
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/test/test_main.cpp')
| -rw-r--r-- | src/qt/test/test_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp index da5f07439..bb768f132 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 |