From dded5ca17812123cea3b6566891376f83036aab8 Mon Sep 17 00:00:00 2001
From: Ulf Hermann <ulf.hermann@qt.io>
Date: Mon, 6 Mar 2017 15:28:15 +0100
Subject: [PATCH] Don't set library paths if !QT_CONFIG(library)

Change-Id: Ibea22f6897ecd54a3aee1aafef6f73df03cf689f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
---
 .../unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp b/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
index f5488db08..e4bb719e6 100644
--- a/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
+++ b/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
@@ -83,7 +83,9 @@ private:
 void tst_QMediaServiceProvider::initTestCase()
 {
 //    QMediaPluginLoader::setStaticPlugins(QLatin1String("mediaservice"), plugins);
+#if QT_CONFIG(library)
     QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath());
+#endif
 }
 
 void tst_QMediaServiceProvider::testDefaultProviderAvailable()
-- 
GitLab