[clangd] Use testPath in the test.

llvm-svn: 347547
This commit is contained in:
Haojian Wu 2018-11-26 11:18:16 +00:00
parent f90bdf73a2
commit 43efc6ba65
1 changed files with 2 additions and 2 deletions

View File

@ -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")));