summaryrefslogtreecommitdiff
path: root/tests/auto/qgeoroutingmanager
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-03-06 15:24:57 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-03-07 09:52:25 +0000
commit31ff679359172dfa068014ab0537418f5b852eac (patch)
tree6cc22138efc1e565ca1f415505b1fb94c7548e80 /tests/auto/qgeoroutingmanager
parent181511ef5c8a86c09a1bd953bdfd5fa603515148 (diff)
downloadqtlocation-31ff679359172dfa068014ab0537418f5b852eac.tar.gz
Don't try to set library paths if !QT_CONFIG(library)
Change-Id: I1774d2b4c637f5057691f43275e10f19b986c722 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/qgeoroutingmanager')
-rw-r--r--tests/auto/qgeoroutingmanager/tst_qgeoroutingmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qgeoroutingmanager/tst_qgeoroutingmanager.cpp b/tests/auto/qgeoroutingmanager/tst_qgeoroutingmanager.cpp
index 4dbeea55..dc519b48 100644
--- a/tests/auto/qgeoroutingmanager/tst_qgeoroutingmanager.cpp
+++ b/tests/auto/qgeoroutingmanager/tst_qgeoroutingmanager.cpp
@@ -35,6 +35,7 @@ QT_USE_NAMESPACE
void tst_QGeoRoutingManager::initTestCase()
{
+#if QT_CONFIG(library)
/*
* Set custom path since CI doesn't install test plugins
*/
@@ -45,6 +46,7 @@ void tst_QGeoRoutingManager::initTestCase()
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()
+ QStringLiteral("/../../../plugins"));
#endif
+#endif
tst_QGeoRoutingManager::loadRoutingManager();
}