Commit 4eb4b8b6 authored by Christoph Cullmann's avatar Christoph Cullmann

fix test for static linking without resource or search paths, it didn't fail but did no testing

parent e4d317da
......@@ -232,7 +232,9 @@ private Q_SLOTS:
foreach (const QString & name, definitionNames) {
Repository repo;
initRepositorySearchPaths(repo);
auto def = repo.definitionForName(name);
QCOMPARE(m_repo.definitionForName(name).isValid(), def.isValid());
auto includedDefs = def.includedDefinitions();
includedDefs.push_front(def);
......@@ -246,6 +248,7 @@ private Q_SLOTS:
formatIds.insert(format.id());
}
}
QVERIFY(!def.isValid() || !formatIds.isEmpty());
// ensure all ids are there from 1..size
for (int i = 1; i <= formatIds.size(); ++i) {
......
Markdown is supported
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