[neon/3rdparty/libaccounts-qt/Neon/unstable] debian/patches: Patch for failing test

Scarlett Moore null at kde.org
Tue Sep 19 18:32:48 BST 2023


Git commit f1fdbb5e250202f6e6aafbb7bb7a24391c3c7ab6 by Scarlett Moore.
Committed on 19/09/2023 at 19:32.
Pushed by scarlettmoore into branch 'Neon/unstable'.

Patch for failing test

A  +27   -0    debian/patches/commit-ca0447d
M  +1    -0    debian/patches/series

https://invent.kde.org/neon/3rdparty/libaccounts-qt/-/commit/f1fdbb5e250202f6e6aafbb7bb7a24391c3c7ab6

diff --git a/debian/patches/commit-ca0447d b/debian/patches/commit-ca0447d
new file mode 100644
index 0000000..3bdbc0c
--- /dev/null
+++ b/debian/patches/commit-ca0447d
@@ -0,0 +1,27 @@
+From ca0447df5fb30bc03d9e5bdd803af3787cea1aa3 Mon Sep 17 00:00:00 2001
+From: Scarlett Moore <sgmoore at kde.org>
+Date: Tue, 19 Sep 2023 10:29:27 -0700
+Subject: Fix tags test as class QList<QString>’ {aka ‘class QList<QString>’}
+ has no member named ‘toSet’ and the function was already updated to qset,
+ just not the test
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+
+diff --git a/tests/tst_libaccounts.cpp b/tests/tst_libaccounts.cpp
+index 471e3d5..45d03ea 100644
+--- a/tests/tst_libaccounts.cpp
++++ b/tests/tst_libaccounts.cpp
+@@ -326,8 +326,9 @@ void AccountsTest::testService()
+     QCOMPARE(service.description(), QStringLiteral("Test description"));
+     QCOMPARE(service.iconName(), QString("general_myservice"));
+     QCOMPARE(service.trCatalog(), QString("accounts"));
+-    QStringList tags;
+-    tags << "email" << "e-mail";
++    QStringList tagsList;
++    tagsList << "email" << "e-mail";
++    QSet<QString> tags = QListToQSet(tagsList);
+     QCOMPARE(service.tags(), tags.toSet());
+     // Called twice, because the second time it returns a cached result
+     QCOMPARE(service.tags(), tags.toSet());
diff --git a/debian/patches/series b/debian/patches/series
index a4b3fe8..f33eee3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Install-the-doc-FILES.patch
 Build-docs-if-doxygen-is-available.patch
 commit-f877232
+commit-ca0447d


More information about the Neon-commits mailing list