summaryrefslogtreecommitdiff
path: root/tests/auto/qplacemanager
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/qplacemanager
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/qplacemanager')
-rw-r--r--tests/auto/qplacemanager/tst_qplacemanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qplacemanager/tst_qplacemanager.cpp b/tests/auto/qplacemanager/tst_qplacemanager.cpp
index c932c0ff..bef58b3c 100644
--- a/tests/auto/qplacemanager/tst_qplacemanager.cpp
+++ b/tests/auto/qplacemanager/tst_qplacemanager.cpp
@@ -80,8 +80,13 @@ void tst_QPlaceManager::initTestCase()
/*
* Set custom path since CI doesn't install test plugins
*/
+#ifdef Q_OS_WIN
+ QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() +
+ QStringLiteral("/../../../../plugins"));
+#else
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()
+ QStringLiteral("/../../../plugins"));
+#endif
provider = 0;
QStringList providers = QGeoServiceProvider::availableServiceProviders();