diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-06 15:28:15 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2017-03-09 16:50:12 +0000 |
commit | dded5ca17812123cea3b6566891376f83036aab8 (patch) | |
tree | 6a761105236e1f3923a851e070acb798ff6e8179 | |
parent | 6f7192a048432e4792330244b74a2a39ccd8d515 (diff) | |
download | qtmultimedia-dded5ca17812123cea3b6566891376f83036aab8.tar.gz |
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>
-rw-r--r-- | tests/auto/unit/qmediaserviceprovider/tst_qmediaserviceprovider.cpp | 2 |
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() |