[clang-tools-extra] 4f2e7f6 - [clangd] Try to fix windows buildbot. NFC

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 4 03:04:05 PDT 2020


Author: Sam McCall
Date: 2020-07-04T12:03:46+02:00
New Revision: 4f2e7f6fb1f212a84d1647920963b66b21175a24

URL: https://github.com/llvm/llvm-project/commit/4f2e7f6fb1f212a84d1647920963b66b21175a24
DIFF: https://github.com/llvm/llvm-project/commit/4f2e7f6fb1f212a84d1647920963b66b21175a24.diff

LOG: [clangd] Try to fix windows buildbot. NFC

http://45.33.8.238/win/19116/step_9.txt

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp b/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
index 352a58bf818e..cb4d23e0be34 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, ""),


        


More information about the cfe-commits mailing list