tst_qresourceengine: Fix test for static MSVC builds
The test relies on the existence of qt-project.org in resources. It contains mimetype data and is automatically added. For static builds on MSVC it is only added if it is actually needed though. Change-Id: Icd1d74466607196f9b635205f7cb4d9b300ec4b8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>bb10
parent
a27f888dec
commit
da97dcec3e
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue