aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2016-08-25 11:47:07 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-08-25 11:50:43 +0000
commit47e1c277c3ca375caa6598703b74aa312b85b60d (patch)
treef5ccf896d3ea17debb1fd3d9c1fac17ecb3223cd /tests
parentd9c19faccda88dac54c6737f71b8e54ef2aec9cf (diff)
Prospective fix for the plugin check on Apple platforms
After enabling separate debug info for Apple platforms, the toolchain creates dSYM directory hierarchies that mirror the real hierarchy. The contained .dylib files are not dylib files, they cannot be loaded. Try to skip any paths that may point to such a hierarchy. Change-Id: Iaee98a657495f31229c29ecd53a63e6493e70aff Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp b/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp
index ab5e958323..bd44bd7c8b 100644
--- a/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp
+++ b/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp
@@ -80,6 +80,10 @@ void tst_qqmlextensionplugin::iidCheck_data()
QList<QString> files;
for (QDirIterator it(QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath), QDirIterator::Subdirectories); it.hasNext(); ) {
QString file = it.next();
+#if defined(Q_OS_DARWIN)
+ if (file.contains(QLatin1String(".dSYM/")))
+ continue;
+#endif
if (file.endsWith(SUFFIX)) {
files << file;
}