summaryrefslogtreecommitdiff
path: root/user/kpeople/dont-crash-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/kpeople/dont-crash-test.patch')
-rw-r--r--user/kpeople/dont-crash-test.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/kpeople/dont-crash-test.patch b/user/kpeople/dont-crash-test.patch
new file mode 100644
index 000000000..e133618be
--- /dev/null
+++ b/user/kpeople/dont-crash-test.patch
@@ -0,0 +1,12 @@
+diff --git a/autotests/personsmodeltest.cpp b/autotests/personsmodeltest.cpp
+index 3e5b9a5..ee2123b 100644
+--- a/autotests/personsmodeltest.cpp
++++ b/autotests/personsmodeltest.cpp
+@@ -119,6 +119,7 @@ void PersonsModelTest::gettersTests()
+ {
+ // Find the index for "kpeople://1" using the QAIModel method
+ QModelIndexList indexList = m_model->match(m_model->index(0,0,QModelIndex()), KPeople::PersonsModel::PersonUriRole, QVariant(QStringLiteral("kpeople://1")), 1);
++ QCOMPARE(indexList.isEmpty(), false);
+ QModelIndex personIndex = indexList.first();
+
+ // Now get the index using our method