summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2015-08-14 15:02:49 (GMT)
committerAlex Richardson <arichardson.kde@gmail.com>2015-08-15 18:28:06 (GMT)
commit437b2d4a3abdb7ddfbd69d19ca275583bc184258 (patch)
tree0d7d16074b46440ef7144f17eee3f180841ee99e
parentbb22f7d3f1307ec8eff837a13bcaa930c38ab08a (diff)
Make generatorstest work without installing first
-rw-r--r--autotests/generatorstest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/autotests/generatorstest.cpp b/autotests/generatorstest.cpp
index 22b85fe..d954e71 100644
--- a/autotests/generatorstest.cpp
+++ b/autotests/generatorstest.cpp
@@ -25,6 +25,7 @@ private slots:
void GeneratorsTest::testLoadsCorrectly()
{
+ QCoreApplication::setLibraryPaths(QStringList());
QVERIFY2(QDir(GENERATORS_BUILD_DIR).exists(), GENERATORS_BUILD_DIR);
// find all possible generators in $CMAKE_BINARY_DIR/generators
// We can't simply hardcore the list of generators since some might not be built
@@ -37,14 +38,14 @@ void GeneratorsTest::testLoadsCorrectly()
if (it.fileName().startsWith(QLatin1String("kio_"))) {
continue; // don't check kio_msits.so
}
- generatorLibs << it.fileName();
+ generatorLibs << it.fileInfo().absoluteFilePath();
}
}
int failures = 0;
int successful = 0;
foreach (const QString& lib, generatorLibs) {
KPluginLoader loader(lib);
- QVERIFY(!loader.fileName().isEmpty());
+ QVERIFY2(!loader.fileName().isEmpty(), qPrintable(lib));
auto factory = loader.factory();
if (!factory) {
qWarning() << "Could not get KPluginFactory for" << lib;