[kdevelop/kdevelop] plugins/clang/tests: Disable broken clang-duchain friend test

Martin Bednár <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 3fcb990fd433b93af7931c00165c6fe71ef9bcbe by Martin Bednár.
Committed on 27/07/2026 at 09:17.
Pushed by bednar into branch 'master'.

Disable broken clang-duchain friend test

Broken in clang commit 91cdd35008e9ab32dffb7e401cdd7313b3461892.
https://github.com/llvm/llvm-project/pull/147835

M  +3    -0    plugins/clang/tests/test_duchain.cpp

https://invent.kde.org/kdevelop/kdevelop/-/commit/3fcb990fd433b93af7931c00165c6fe71ef9bcbe

diff --git a/plugins/clang/tests/test_duchain.cpp b/plugins/clang/tests/test_duchain.cpp
index dda200436e..b3134aa1c1 100644
--- a/plugins/clang/tests/test_duchain.cpp
+++ b/plugins/clang/tests/test_duchain.cpp
@@ -2102,6 +2102,9 @@ void TestDUChain::testFriendDeclaration()
             QEXPECT_FAIL("", "Your clang version is too old", Abort);
         }
         QCOMPARE(friendBar->uses().size(), 1);
+        if (QVersionNumber::fromString(ClangHelpers::clangVersion()) >= QVersionNumber(22, 0, 0)) {
+            QEXPECT_FAIL("", "clang commit 91cdd35008e9ab32dffb7e401cdd7313b3461892 broke this (github.com/llvm/llvm-project/pull/147835)", Abort);
+        }
         QCOMPARE(friendBar->uses().begin()->first(), RangeInRevision(3,25,3,34));
         QCOMPARE(friendBar->uses().begin()->last(), RangeInRevision(8,8,8,17));
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.