From 31ff679359172dfa068014ab0537418f5b852eac Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 6 Mar 2017 15:24:57 +0100 Subject: Don't try to set library paths if !QT_CONFIG(library) Change-Id: I1774d2b4c637f5057691f43275e10f19b986c722 Reviewed-by: Oswald Buddenhagen Reviewed-by: Alex Blasche --- tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/qgeotiledmap') diff --git a/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp b/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp index cc2672b2..480e7d60 100644 --- a/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp +++ b/tests/auto/qgeotiledmap/tst_qgeotiledmap.cpp @@ -91,6 +91,7 @@ tst_QGeoTiledMap::~tst_QGeoTiledMap() void tst_QGeoTiledMap::initTestCase() { +#if QT_CONFIG(library) // Set custom path since CI doesn't install test plugins #ifdef Q_OS_WIN QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + @@ -98,6 +99,7 @@ void tst_QGeoTiledMap::initTestCase() #else QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + QStringLiteral("/../../../plugins")); +#endif #endif QVariantMap parameters; parameters["tileSize"] = 16; -- cgit v1.2.1