summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp b/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp
index 9de2aabd31..b7e85e8f05 100644
--- a/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp
+++ b/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp
@@ -29,6 +29,7 @@
#include <QtTest/QtTest>
#include <QtCore/QCoreApplication>
+#include <QtCore/QMimeDatabase>
class tst_QResourceEngine: public QObject
{
@@ -344,6 +345,11 @@ void tst_QResourceEngine::checkStructure()
QFETCH(QLocale, locale);
QFETCH(qlonglong, contentsSize);
+ // We rely on the existence of the root "qt-project.org" in resources. For
+ // static builds on MSVC these resources are only added if they are used.
+ QMimeDatabase db;
+ Q_UNUSED(db);
+
bool directory = (containedDirs.size() + containedFiles.size() > 0);
QLocale::setDefault(locale);