diff options
author | Daniel Jasper <djasper@google.com> | 2012-10-08 20:32:51 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-10-08 20:32:51 +0000 |
commit | 6b108a617d2cd830a609d4527aeb42b7fd21abef (patch) | |
tree | 4a470e2ff4ff3b8e6c72e1d4c5ad243d95cd3643 /clang/unittests/Tooling | |
parent | 5697f99f989af6cf0cded0b80f176403f3e1a120 (diff) | |
download | bcm5719-llvm-6b108a617d2cd830a609d4527aeb42b7fd21abef.tar.gz bcm5719-llvm-6b108a617d2cd830a609d4527aeb42b7fd21abef.zip |
CompilationDatabaseTest: Fix another Windows path issue.
llvm-svn: 165425
Diffstat (limited to 'clang/unittests/Tooling')
-rw-r--r-- | clang/unittests/Tooling/CompilationDatabaseTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/clang/unittests/Tooling/CompilationDatabaseTest.cpp index b9a6d73a6d1..5ed4240c1ee 100644 --- a/clang/unittests/Tooling/CompilationDatabaseTest.cpp +++ b/clang/unittests/Tooling/CompilationDatabaseTest.cpp @@ -14,6 +14,7 @@ #include "clang/Tooling/FileMatchTrie.h" #include "clang/Tooling/JSONCompilationDatabase.h" #include "clang/Tooling/Tooling.h" +#include "llvm/Support/PathV2.h" #include "gtest/gtest.h" namespace clang { @@ -56,8 +57,11 @@ TEST(JSONCompilationDatabase, GetAllFiles) { getAllFiles("[]", ErrorMessage)) << ErrorMessage; std::vector<std::string> expected_files; - expected_files.push_back("//net/dir/file1"); - expected_files.push_back("//net/dir/file2"); + SmallString<16> PathStorage; + llvm::sys::path::native("//net/dir/file1", PathStorage); + expected_files.push_back(PathStorage.str()); + llvm::sys::path::native("//net/dir/file2", PathStorage); + expected_files.push_back(PathStorage.str()); EXPECT_EQ(expected_files, getAllFiles( "[{\"directory\":\"//net/dir\"," "\"command\":\"command\"," |