Skip to content

Commit

Permalink
Initialization: setup environment before starting QT tests
Browse files Browse the repository at this point in the history
The environment is prepared by the main thread to guard against invalid locale settings.
  • Loading branch information
dexX7 committed Mar 29, 2015
1 parent fc3979a commit 3a3ecc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/test/test_main.cpp
Expand Up @@ -6,6 +6,7 @@
#include "config/bitcoin-config.h"
#endif

#include "util.h"
#include "uritests.h"

#ifdef ENABLE_WALLET
Expand All @@ -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
Expand Down

0 comments on commit 3a3ecc0

Please sign in to comment.