summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-21 11:09:08 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-21 11:09:08 +0200
commit1fd79bfd906de6e630f813417fced24cfca97f4b (patch)
tree3f2c970c162b127d518800381bde96cf1e982145 /tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
parent684456d8fbdb80d621e3c4838544c2878e3f2a43 (diff)
parent021e8989308fba30425e7a0f34f4e176a8aa3ccf (diff)
Merge remote-tracking branch 'origin/5.9' into dev
Diffstat (limited to 'tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp')
-rw-r--r--tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp2
1 files changed, 2 insertions, 0 deletions
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()