tst_QMimeDatabase{Xml,Cache}: make the two siblings behave the same

First include the common tst_qmimedatabase.cpp (and nothing else),
then implement the differing
tst_QMimeDatabase::initTestCaseInternal().

This will allow adding #undef QT_NO_FOREACH to tst_qmimedatabase.cpp
in the next step.

Change-Id: Icc1890229e9443bd35c81d4f0440ba7df5da906c
Reviewed-by: David Faure <david.faure@kdab.com>
(cherry picked from commit b7c6b670baf13cdf12b3ba93504e8df86e7b0af1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2023-08-07 22:44:55 +02:00 committed by Qt Cherry-pick Bot
parent b1d28854f2
commit 81d2137738
2 changed files with 1 additions and 8 deletions

View File

@ -1,12 +1,6 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "../tst_qmimedatabase.h"
#include <QDir>
#include <QFile>
#include <QTest>
#include <qstandardpaths.h>
#include "../tst_qmimedatabase.cpp"
void tst_QMimeDatabase::initTestCaseInternal()

View File

@ -1,11 +1,10 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "../tst_qmimedatabase.h"
#include "../tst_qmimedatabase.cpp"
void tst_QMimeDatabase::initTestCaseInternal()
{
qputenv("QT_NO_MIME_CACHE", "1");
}
#include "../tst_qmimedatabase.cpp"