diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-01-31 16:00:39 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-02-04 11:58:52 +0000 |
commit | 41fee90d8eded9f6ac7c172e9bdc05cf8e9af9d0 (patch) | |
tree | 30134f261d4c2f2a9692cb4d807179a4e3c1413b /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | |
parent | e24b91555bb06a78bfa6fc9c0dedab40e99821ba (diff) |
CppEditor: Fix testing
Now that clangd is enabled by default, we must explicitly turn it off to
test the built-in follow symbol functionality.
Change-Id: Ib275893a920145868b314ce02e9dd80f656bade4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r-- | src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index 81b410a3cd..63f16e9809 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -251,7 +251,7 @@ F2TestCase::F2TestCase(CppEditorAction action, const QString curTestName = QLatin1String(QTest::currentTestFunction()); const QString tag = QLatin1String(QTest::currentDataTag()); - const bool useClangd = ClangdSettings::instance().useClangd(); + const bool useClangd = m_testKit; if (useClangd) { if (curTestName == "testFollowSymbolQObjectConnect" || curTestName == "testFollowSymbolQObjectOldStyleConnect") { @@ -442,7 +442,7 @@ F2TestCase::F2TestCase(CppEditorAction action, // qDebug() << "Expected line:" << expectedLine; // qDebug() << "Expected column:" << expectedColumn; - if (!ClangdSettings::instance().useClangd()) { + if (!useClangd) { QEXPECT_FAIL("globalVarFromEnum", "Contributor works on a fix.", Abort); QEXPECT_FAIL("matchFunctionSignature_Follow_5", "foo(int) resolved as CallAST", Abort); } |