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

filetypestest: forward-port QEXPECT_FAIL for Qt bug (fixed)

parent 6e7c3f66
......@@ -170,7 +170,9 @@ private Q_SLOTS:
// Check what's in QMimeDatabase
QStringList newPatterns = db.mimeTypeForName(QStringLiteral("text/plain")).globPatterns();
qDebug() << "QMimeDatabase says" << newPatterns << "we just saved" << patterns;
#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!)
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