tests: fix qt payment test
Now that boost no longer automatically initializes openssl, we have to do it ourselves.
This commit is contained in:
parent
3140ef9249
commit
6e996d39da
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
|
#include <openssl/ssl.h>
|
||||||
|
|
||||||
#if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000
|
#if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
Q_IMPORT_PLUGIN(qcncodecs)
|
Q_IMPORT_PLUGIN(qcncodecs)
|
||||||
|
@ -36,6 +38,8 @@ int main(int argc, char *argv[])
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
app.setApplicationName("Bitcoin-Qt-test");
|
app.setApplicationName("Bitcoin-Qt-test");
|
||||||
|
|
||||||
|
SSL_library_init();
|
||||||
|
|
||||||
URITests test1;
|
URITests test1;
|
||||||
if (QTest::qExec(&test1) != 0)
|
if (QTest::qExec(&test1) != 0)
|
||||||
fInvalid = true;
|
fInvalid = true;
|
||||||
|
|
Loading…
Reference in a new issue