aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2020-07-04 12:03:22 +0200
committerSam McCall <sam.mccall@gmail.com>2020-07-04 12:03:46 +0200
commit4f2e7f6fb1f212a84d1647920963b66b21175a24 (patch)
tree47c63531cc24956becca4a41d5ea84a5fd016a4d
parent6d6d5db251e88b0c40f7a6951b51b9e4a1812c8c (diff)
downloadllvm-4f2e7f6fb1f212a84d1647920963b66b21175a24.zip
llvm-4f2e7f6fb1f212a84d1647920963b66b21175a24.tar.gz
llvm-4f2e7f6fb1f212a84d1647920963b66b21175a24.tar.bz2
[clangd] Try to fix windows buildbot. NFC
http://45.33.8.238/win/19116/step_9.txt
-rw-r--r--clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp b/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
index 352a58b..cb4d23e 100644
--- a/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
+++ b/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
@@ -144,8 +144,10 @@ TEST_F(BackgroundIndexTest, Config) {
Context::empty(), FS, CDB, [&](llvm::StringRef) { return &MSS; },
/*ThreadPoolSize=*/4, /*OnProgress=*/nullptr, std::move(ContextProvider));
// Index the two files.
- for (auto &Cmd : Cmds)
- CDB.setCompileCommand(testPath(Cmd.Filename), std::move(Cmd));
+ for (auto &Cmd : Cmds) {
+ std::string FullPath = testPath(Cmd.Filename);
+ CDB.setCompileCommand(FullPath, std::move(Cmd));
+ }
// Wait for both files to be indexed.
ASSERT_TRUE(Idx.blockUntilIdleForTest());
EXPECT_THAT(runFuzzyFind(Idx, ""),