aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-01-31 16:00:39 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2022-02-04 11:58:52 +0000
commit41fee90d8eded9f6ac7c172e9bdc05cf8e9af9d0 (patch)
tree30134f261d4c2f2a9692cb4d807179a4e3c1413b /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
parente24b91555bb06a78bfa6fc9c0dedab40e99821ba (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.cpp4
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);
}