diff --git a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp index e3504de7329..995fbc13c07 100644 --- a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp +++ b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp @@ -222,8 +222,10 @@ void tst_QMimeDatabase::mimeTypeForName() qWarning() << "ls not found"; else { const QString executableType = QString::fromLatin1("application/x-executable"); + const QString sharedLibType = QString::fromLatin1("application/x-sharedlib"); //QTest::newRow("executable") << exePath << executableType; - QCOMPARE(db.mimeTypeForFile(exePath).name(), executableType); + QVERIFY(db.mimeTypeForFile(exePath).name() == executableType || + db.mimeTypeForFile(exePath).name() == sharedLibType); } #endif