Skip to content

Commit

Permalink
tests: fix qt payment test
Browse files Browse the repository at this point in the history
Now that boost no longer automatically initializes openssl, we have to
do it ourselves.
  • Loading branch information
theuni authored and laanwj committed Sep 2, 2015
1 parent 3140ef9 commit 6e996d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 6e996d3

Please sign in to comment.