diff --git a/autotests/anitest.cpp b/autotests/anitest.cpp index eaa3a80..295ae35 100644 --- a/autotests/anitest.cpp +++ b/autotests/anitest.cpp @@ -31,6 +31,8 @@ class AniTests : public QObject private Q_SLOTS: void initTestCase() { + // addLibraryPath is a no-op if the path added is already present in the list + QCoreApplication::removeLibraryPath(QStringLiteral(PLUGIN_DIR)); QCoreApplication::addLibraryPath(QStringLiteral(PLUGIN_DIR)); } diff --git a/autotests/pictest.cpp b/autotests/pictest.cpp index 09be23a..f0572e6 100644 --- a/autotests/pictest.cpp +++ b/autotests/pictest.cpp @@ -59,6 +59,8 @@ private: private Q_SLOTS: void initTestCase() { + // addLibraryPath is a no-op if the path added is already present in the list + QCoreApplication::removeLibraryPath(QStringLiteral(PLUGIN_DIR)); QCoreApplication::addLibraryPath(QStringLiteral(PLUGIN_DIR)); }