summaryrefslogtreecommitdiff
path: root/tests/auto/qgeoareamonitor
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-07-24 12:36:56 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-07-29 11:14:19 +0000
commit040a060519bbada7c3eb03e0dc062d5fd5812ed6 (patch)
treec3c372235a6618c205e8f4fe4f9d2764f780fe3f /tests/auto/qgeoareamonitor
parentdd963b426a49235f98515ed7c4d35892f0360bb9 (diff)
downloadqtlocation-040a060519bbada7c3eb03e0dc062d5fd5812ed6.tar.gz
Adjust plugin path for win to cope with Debug/Release dirs
This messes up the relative path to the test plugins in QCoreApplication::libraryPaths(). Change-Id: I0ab35ba9be60ea9ec2383bbe3791baebb844f2a5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/auto/qgeoareamonitor')
-rw-r--r--tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp b/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp
index 6da752c3..da4827cf 100644
--- a/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp
+++ b/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp
@@ -85,8 +85,13 @@ private slots:
/*
* Set custom path since CI doesn't install plugins
*/
+#ifdef Q_OS_WIN
+ QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() +
+ QStringLiteral("/../../../../plugins"));
+#else
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()
+ QStringLiteral("/../../../plugins"));
+#endif
qRegisterMetaType<QGeoPositionInfo>();
qRegisterMetaType<QGeoAreaMonitorInfo>();
}