diff options
-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() |