forked from qt-creator/qt-creator
ClangCodeModel: Fix test crash
Amends 509600da99
.
Change-Id: Ia07a65e509414b41f279f50c02893d1733fd1022
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -174,6 +174,7 @@ void ClangdTest::initTestCase()
|
||||
QVERIFY(doc);
|
||||
QVERIFY2(m_client->documentForFilePath(sourceFilePath) == doc,
|
||||
qPrintable(sourceFilePath.toUserOutput()));
|
||||
doc->setSuspendAllowed(false);
|
||||
m_sourceDocuments.insert(sourceFileName, doc);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user