Commit dded5ca1 authored by Ulf Hermann's avatar Ulf Hermann Committed by Yoann Lopes
Browse files

Don't set library paths if !QT_CONFIG(library)


Change-Id: Ibea22f6897ecd54a3aee1aafef6f73df03cf689f
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: default avatarYoann Lopes <yoann.lopes@qt.io>
Showing with 2 additions and 0 deletions
...@@ -83,7 +83,9 @@ private: ...@@ -83,7 +83,9 @@ private:
void tst_QMediaServiceProvider::initTestCase() void tst_QMediaServiceProvider::initTestCase()
{ {
// QMediaPluginLoader::setStaticPlugins(QLatin1String("mediaservice"), plugins); // QMediaPluginLoader::setStaticPlugins(QLatin1String("mediaservice"), plugins);
#if QT_CONFIG(library)
QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath()); QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath());
#endif
} }
void tst_QMediaServiceProvider::testDefaultProviderAvailable() void tst_QMediaServiceProvider::testDefaultProviderAvailable()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment