Initialization: setup environment before starting QT tests

The environment is prepared by the main thread to guard against invalid locale settings.
This commit is contained in:
dexX7 2015-03-27 01:33:34 +01:00
parent 7494e0915b
commit 323de27f4b
No known key found for this signature in database
GPG Key ID: 7675E31CF5719832
1 changed files with 2 additions and 0 deletions

View File

@ -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