[clangd] Try to fix windows buildbot. NFC
authorSam McCall <sam.mccall@gmail.com>
Sat, 4 Jul 2020 10:03:22 +0000 (12:03 +0200)
committerSam McCall <sam.mccall@gmail.com>
Sat, 4 Jul 2020 10:03:46 +0000 (12:03 +0200)
http://45.33.8.238/win/19116/step_9.txt

clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp

index 352a58b..cb4d23e 100644 (file)
@@ -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, ""),