From 569d5ca4da5a6526fb257fe70670824df84b4461 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 22 Sep 2020 12:25:11 +0200 Subject: [PATCH] C++ unit test: Another clang 11 adaptation This was probably a bug in clang 10: The amount of whitespace after the operator should not matter. Change-Id: If161a7b2f60ee932bef19edb9fe71aac31be3c8b Reviewed-by: Christian Stenger --- tests/unit/unittest/codecompleter-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/unittest/codecompleter-test.cpp b/tests/unit/unittest/codecompleter-test.cpp index be84bad99eb..714d3802600 100644 --- a/tests/unit/unittest/codecompleter-test.cpp +++ b/tests/unit/unittest/codecompleter-test.cpp @@ -545,7 +545,7 @@ TEST_F(CodeCompleterSlowTest, GlobalCompletionAfterForwardDeclaredClassPointer) auto myCompleter = setupCompleter(globalCompletionAfterForwardDeclaredClassPointer); const ClangBackEnd::CodeCompletions completions = myCompleter.complete(6, 4); - ASSERT_TRUE(!completions.isEmpty()); + ASSERT_EQ(completions.isEmpty(), CINDEX_VERSION_MINOR != 59); } TEST_F(CodeCompleterSlowTest, ConstructorCompletionExists)