[clang-tools-extra] r333897 - [clangd] Fix inverted test (--gtest_filter strikes again...)
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 4 06:28:17 PDT 2018
Author: sammccall
Date: Mon Jun 4 06:28:17 2018
New Revision: 333897
URL: http://llvm.org/viewvc/llvm-project?rev=333897&view=rev
Log:
[clangd] Fix inverted test (--gtest_filter strikes again...)
Modified:
clang-tools-extra/trunk/unittests/clangd/XRefsTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/XRefsTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/XRefsTests.cpp?rev=333897&r1=333896&r2=333897&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/XRefsTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/XRefsTests.cpp Mon Jun 4 06:28:17 2018
@@ -643,7 +643,7 @@ TEST(Hover, All) {
Annotations T(Test.Input);
auto AST = TestTU::withCode(T.code()).build();
if (auto H = getHover(AST, T.point())) {
- EXPECT_EQ("", Test.ExpectedHover) << Test.Input;
+ EXPECT_NE("", Test.ExpectedHover) << Test.Input;
EXPECT_EQ(H->contents.value, Test.ExpectedHover) << Test.Input;
} else
EXPECT_EQ("", Test.ExpectedHover) << Test.Input;
More information about the cfe-commits
mailing list