diff options
Diffstat (limited to 'gnu/packages/patches/jami-unittests-fix-build.patch')
-rw-r--r-- | gnu/packages/patches/jami-unittests-fix-build.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gnu/packages/patches/jami-unittests-fix-build.patch b/gnu/packages/patches/jami-unittests-fix-build.patch deleted file mode 100644 index c39be41c2b..0000000000 --- a/gnu/packages/patches/jami-unittests-fix-build.patch +++ /dev/null @@ -1,46 +0,0 @@ -Upstream-status: https://review.jami.net/c/jami-client-qt/+/31508 - -diff --git a/tests/unittests/previewengine_unittest.cpp b/tests/unittests/previewengine_unittest.cpp -index f5c103cf..810e621b 100644 ---- a/tests/unittests/previewengine_unittest.cpp -+++ b/tests/unittests/previewengine_unittest.cpp -@@ -17,7 +17,8 @@ - - #include "globaltestenvironment.h" - --#include <QtHttpServer/QHttpServer> -+#include <QtHttpServer> -+#include <QTcpServer> - - class PreviewEngineFixture : public ::testing::Test - { -@@ -27,19 +28,27 @@ public: - void SetUp() override - { - server = new QHttpServer(); -- // Setup a server that can return an HTML body. -- server->listen(QHostAddress::LocalHost, 8000); -+ tcpserver = new QTcpServer(); -+ -+ // Setup a server that can return an HTML body, which listens -+ // on 127.0.0.1 (localhost) and port 8000. -+ if (!tcpserver->listen(QHostAddress::LocalHost, 8000) -+ || !server->bind(tcpserver)) { -+ qFatal() << "failed to listen:" << tcpserver->errorString(); -+ } - } - - // Close unit test context. Called - // after each unit test ending - void TearDown() override - { -+ delete tcpserver; - delete server; - } - - // An instance of QHttpServer used to create a server. - QHttpServer* server; -+ QTcpServer* tcpserver; - }; - - /*! |