tests: fix qt payment test

Now that boost no longer automatically initializes openssl, we have to
do it ourselves.
This commit is contained in:
Cory Fields 2015-01-20 13:35:13 +01:00 committed by Wladimir J. van der Laan
parent 3140ef9249
commit 6e996d39da

View File

@ -17,6 +17,8 @@
#include <QObject>
#include <QTest>
#include <openssl/ssl.h>
#if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000
#include <QtPlugin>
Q_IMPORT_PLUGIN(qcncodecs)
@ -36,6 +38,8 @@ int main(int argc, char *argv[])
QCoreApplication app(argc, argv);
app.setApplicationName("Bitcoin-Qt-test");
SSL_library_init();
URITests test1;
if (QTest::qExec(&test1) != 0)
fInvalid = true;