[clang-tools-extra] r347547 - [clangd] Use testPath in the test.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 26 03:18:16 PST 2018


Author: hokein
Date: Mon Nov 26 03:18:16 2018
New Revision: 347547

URL: http://llvm.org/viewvc/llvm-project?rev=347547&view=rev
Log:
[clangd] Use testPath in the test.

Modified:
    clang-tools-extra/trunk/unittests/clangd/FindSymbolsTests.cpp

Modified: clang-tools-extra/trunk/unittests/clangd/FindSymbolsTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/FindSymbolsTests.cpp?rev=347547&r1=347546&r2=347547&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/FindSymbolsTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/FindSymbolsTests.cpp Mon Nov 26 03:18:16 2018
@@ -478,7 +478,7 @@ TEST_F(DocumentSymbolsTest, Unnamed) {
 }
 
 TEST_F(DocumentSymbolsTest, InHeaderFile) {
-  addFile("bar.h", R"cpp(
+  addFile(testPath("bar.h"), R"cpp(
       int foo() {
       }
       )cpp");
@@ -488,7 +488,7 @@ TEST_F(DocumentSymbolsTest, InHeaderFile
       int test() {
       }
       )cpp");
-  addFile("foo.cpp", R"cpp(
+  addFile(testPath("foo.cpp"), R"cpp(
       #include "foo.h"
       )cpp");
   EXPECT_THAT(getSymbols(FilePath), ElementsAre(WithName("test")));




More information about the cfe-commits mailing list