mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-18 12:08:48 -05:00
Make anitest and pictest load the built plugins
addLibraryPath() is a no-op if the path being added is already present, which is the case for PLUGIN_DIR here (it is set to the test's own directory). The docs for addLibraryPath() say this directory is last in the default list.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user