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 Apr 18, 2015
1 parent 7494e09 commit 323de27
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 323de27

Please sign in to comment.