ClangCodeModel: Fix test crash

Amends 509600da99.

Change-Id: Ia07a65e509414b41f279f50c02893d1733fd1022
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2022-05-25 10:15:54 +02:00
parent 8b444f88eb
commit 5ae128f634

View File

@@ -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);
}
}