forked from qt-creator/qt-creator
CppEditor: Mark some tests as XFAIL when running with clangd
These are fuzzy decl/def switches, where clangd does not fail, but returns the original location. Change-Id: I86814c2dc5e1b8ec9085fd1486c0120e2f98a3b6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -396,6 +396,12 @@ F2TestCase::F2TestCase(CppEditorAction action,
|
||||
BaseTextEditor *currentTextEditor = dynamic_cast<BaseTextEditor*>(currentEditor);
|
||||
QVERIFY(currentTextEditor);
|
||||
|
||||
if (useClangd) {
|
||||
QEXPECT_FAIL("matchFunctionSignatureFuzzy1Forward", "clangd returns decl loc", Abort);
|
||||
QEXPECT_FAIL("matchFunctionSignatureFuzzy2Forward", "clangd returns decl loc", Abort);
|
||||
QEXPECT_FAIL("matchFunctionSignatureFuzzy1Backward", "clangd returns def loc", Abort);
|
||||
QEXPECT_FAIL("matchFunctionSignatureFuzzy2Backward", "clangd returns def loc", Abort);
|
||||
}
|
||||
QCOMPARE(currentTextEditor->document()->filePath(), targetTestFile->filePath());
|
||||
int expectedLine, expectedColumn;
|
||||
if (useClangd && expectedVirtualFunctionProposal.size() == 1) {
|
||||
@@ -496,6 +502,7 @@ void FollowSymbolTest::initTestCase()
|
||||
// Find suitable kit.
|
||||
// Qt is not actually required for the tests, but we need it for consistency with
|
||||
// configureAsExampleProject().
|
||||
// FIXME: Make configureAsExampleProject() work with non-Qt kits.
|
||||
F2TestCase::m_testKit = Utils::findOr(KitManager::kits(), nullptr, [](const Kit *k) {
|
||||
return k->isValid() && !k->hasWarning() && k->value("QtSupport.QtInformation").isValid();
|
||||
});
|
||||
|
Reference in New Issue
Block a user