aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp')
-rw-r--r--tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp b/tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp
index 5e5dab3f34..10c5382455 100644
--- a/tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp
+++ b/tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp
@@ -196,7 +196,11 @@ void tst_qquickfolderlistmodel::nameFilters()
this, SLOT(removed(QModelIndex,int,int)));
QTRY_VERIFY(flm->rowCount() > 0);
+ // read an invalid directory first...
+ flm->setProperty("folder", testFileUrl("nosuchdirectory"));
+ QTRY_COMPARE(flm->property("count").toInt(),0);
flm->setProperty("folder", testFileUrl("resetfiltering"));
+ // so that the QTRY_COMPARE for 3 entries will process queued signals
QTRY_COMPARE(flm->property("count").toInt(),3); // all files visible
int count = flm->rowCount();