aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp b/sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp
index 216101215..7e5664842 100644
--- a/sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp
+++ b/sources/shiboken2/ApiExtractor/tests/testextrainclude.cpp
@@ -73,8 +73,9 @@ void TestExtraInclude::testGlobalExtraIncludes()
QVERIFY(AbstractMetaClass::findClass(classes, QLatin1String("A")));
TypeDatabase* td = TypeDatabase::instance();
- TypeEntry* module = td->findType(QLatin1String("Foo"));
+ const TypeSystemTypeEntry *module = td->defaultTypeSystemType();
QVERIFY(module);
+ QCOMPARE(module->name(), QLatin1String("Foo"));
QVector<Include> includes = module->extraIncludes();
QCOMPARE(includes.count(), 2);