diff --git a/debian/changelog b/debian/changelog index ada62eb..3c99c4c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,7 @@ * Update build-deps and deps with the info from cmake * Update symbols from build for 18.07.90. * Update patch hunks. + * Add patch o fix failing test. -- Debian Qt/KDE Maintainers Tue, 07 Aug 2018 20:23:49 +0200 diff --git a/debian/patches/fix-autotests.patch b/debian/patches/fix-autotests.patch new file mode 100644 index 0000000..24aed4b --- /dev/null +++ b/debian/patches/fix-autotests.patch @@ -0,0 +1,27 @@ +--- a/autotests/davitemslistjobtest.cpp ++++ b/autotests/davitemslistjobtest.cpp +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + #include + +@@ -31,13 +32,14 @@ void DavItemsListJobTest::noMatchingMime + + QUrl url(QStringLiteral("http://localhost/collection")); + KDAV::DavUrl davUrl(url, KDAV::CardDav); ++ KDAV::Error error(KDAV::ErrorNumber::ERR_ITEMLIST_NOMIMETYPE, 0, QString(), 0); + + auto job = new KDAV::DavItemsListJob(davUrl, cache); + job->setContentMimeTypes(QStringList() << QStringLiteral("mime/invalid1") << QStringLiteral("mime/invalid2")); + job->exec(); + +- QCOMPARE(job->error(), 431); +- QCOMPARE(job->errorText(), QStringLiteral("There was a problem with the request. The requested mimetypes are not supported.")); ++ QCOMPARE(job->error(), KDAV::ErrorNumber::ERR_ITEMLIST_NOMIMETYPE); ++ QCOMPARE(job->errorText(), error.errorText()); + + } + diff --git a/debian/patches/series b/debian/patches/series index ba161c0..61f6ec1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ enable_debianabimanager.diff +fix-autotests.patch