summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/mimetypes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/mimetypes')
-rw-r--r--tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp
index e3504de732..995fbc13c0 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