diff --git a/clang-tools-extra/unittests/clangd/FileIndexTests.cpp b/clang-tools-extra/unittests/clangd/FileIndexTests.cpp index fc374bba6743b..5667cb8fd5974 100644 --- a/clang-tools-extra/unittests/clangd/FileIndexTests.cpp +++ b/clang-tools-extra/unittests/clangd/FileIndexTests.cpp @@ -218,7 +218,7 @@ TEST(FileIndexTest, HasSystemHeaderMappingsInPreamble) { class Foo {}; )cpp"; auto MainFile = testPath("foo.cpp"); - auto HeaderFile = testPath("bits/alloc_traits.h"); + auto HeaderFile = testPath("algorithm"); std::vector Cmd = {"clang", "-xc++", MainFile.c_str(), "-include", HeaderFile.c_str()}; // Preparse ParseInputs. @@ -242,7 +242,7 @@ TEST(FileIndexTest, HasSystemHeaderMappingsInPreamble) { auto Symbols = runFuzzyFind(Index, ""); EXPECT_THAT(Symbols, ElementsAre(_)); EXPECT_THAT(Symbols.begin()->IncludeHeaders.front().IncludeHeader, - ""); + ""); } TEST(FileIndexTest, TemplateParamsInLabel) {