mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
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:
parent
fc3979ac69
commit
3a3ecc02e5
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
#include "config/bitcoin-config.h"
|
#include "config/bitcoin-config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "util.h"
|
||||||
#include "uritests.h"
|
#include "uritests.h"
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
|
@ -27,6 +28,7 @@ Q_IMPORT_PLUGIN(qkrcodecs)
|
||||||
// This is all you need to run all the tests
|
// This is all you need to run all the tests
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
SetupEnvironment();
|
||||||
bool fInvalid = false;
|
bool fInvalid = false;
|
||||||
|
|
||||||
// Don't remove this, it's needed to access
|
// Don't remove this, it's needed to access
|
||||||
|
|
Loading…
Add table
Reference in a new issue