summaryrefslogtreecommitdiff
path: root/tests/auto/positionplugintest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/positionplugintest')
-rw-r--r--tests/auto/positionplugintest/tst_positionplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/positionplugintest/tst_positionplugin.cpp b/tests/auto/positionplugintest/tst_positionplugin.cpp
index 34d05094..6e8847b8 100644
--- a/tests/auto/positionplugintest/tst_positionplugin.cpp
+++ b/tests/auto/positionplugintest/tst_positionplugin.cpp
@@ -53,6 +53,7 @@ private slots:
void tst_PositionPlugin::initTestCase()
{
+#if QT_CONFIG(library)
/*
* Set custom path since CI doesn't install test plugins
*/
@@ -63,6 +64,7 @@ void tst_PositionPlugin::initTestCase()
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()
+ QStringLiteral("/../../../plugins"));
#endif
+#endif
qRegisterMetaType<QGeoPositionInfo>();
}