Skip to content

Commit 6e996d3

Browse files
theunilaanwj
authored andcommitted
tests: fix qt payment test
Now that boost no longer automatically initializes openssl, we have to do it ourselves.
1 parent 3140ef9 commit 6e996d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/test/test_main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include <QObject>
1818
#include <QTest>
1919

20+
#include <openssl/ssl.h>
21+
2022
#if defined(QT_STATICPLUGIN) && QT_VERSION < 0x050000
2123
#include <QtPlugin>
2224
Q_IMPORT_PLUGIN(qcncodecs)
@@ -36,6 +38,8 @@ int main(int argc, char *argv[])
3638
QCoreApplication app(argc, argv);
3739
app.setApplicationName("Bitcoin-Qt-test");
3840

41+
SSL_library_init();
42+
3943
URITests test1;
4044
if (QTest::qExec(&test1) != 0)
4145
fInvalid = true;

0 commit comments

Comments
 (0)