Commit 6fdb3f6d authored by David Faure's avatar David Faure
Browse files

This test was failing due to QTBUG-85436 which I just fixed.

parent 831128c1
......@@ -167,8 +167,13 @@ private Q_SLOTS:
// Check what's in QMimeDatabase
QStringList newPatterns = db.mimeTypeForName(QStringLiteral("text/plain")).globPatterns();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // adjust to 5.15 if the fix gets backported
QEXPECT_FAIL("", "QTBUG-85436 is only fixed in Qt 6.0", Continue);
QCOMPARE(newPatterns, patterns);
if (newPatterns == patterns) { // TODO Qt6: remove the if (keep the QVERIFY!)
// And then removing the custom file by hand should revert to the initial state
const QString packageFileName = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/mime/") + QStringLiteral("packages/text-plain.xml") ;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment