summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2018-11-16 02:20:33 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2018-11-16 02:20:33 +0000
commitab73426c68747fb5221f7ef818de1f71d873dca8 (patch)
tree04aafb2b0ecc9273fc6296ebd28d2af4040310ad /llvm/unittests/Support
parentc93ae2b0a2df4d19c09c8439231eaf52e82e2dfe (diff)
downloadbcm5719-llvm-ab73426c68747fb5221f7ef818de1f71d873dca8.tar.gz
bcm5719-llvm-ab73426c68747fb5221f7ef818de1f71d873dca8.zip
[VFS] Update unittest to fix Windows buildbot.
Buildbot http://lab.llvm.org:8011/builders/clang-x64-windows-msvc is failing because it doesn't like paths in VFS, make them more Windows-friendly. Follow up to r347009. llvm-svn: 347016
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/VirtualFileSystemTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index 435978f5afe..458b07e6d43 100644
--- a/llvm/unittests/Support/VirtualFileSystemTest.cpp
+++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp
@@ -1778,7 +1778,7 @@ TEST_F(VFSFromYAMLTest, DirectoryIterationErrorInVFSLayer) {
TEST_F(VFSFromYAMLTest, GetRealPath) {
IntrusiveRefCntPtr<DummyFileSystem> Lower(new DummyFileSystem());
- Lower->addDirectory("/dir/");
+ Lower->addDirectory("//dir/");
Lower->addRegularFile("/foo");
Lower->addSymlink("/link");
IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString(
@@ -1786,7 +1786,7 @@ TEST_F(VFSFromYAMLTest, GetRealPath) {
" 'roots': [\n"
"{\n"
" 'type': 'directory',\n"
- " 'name': '/root/',\n"
+ " 'name': '//root/',\n"
" 'contents': [ {\n"
" 'type': 'file',\n"
" 'name': 'bar',\n"
@@ -1796,7 +1796,7 @@ TEST_F(VFSFromYAMLTest, GetRealPath) {
"},\n"
"{\n"
" 'type': 'directory',\n"
- " 'name': '/dir/',\n"
+ " 'name': '//dir/',\n"
" 'contents': []\n"
"}\n"
"]\n"
@@ -1810,12 +1810,12 @@ TEST_F(VFSFromYAMLTest, GetRealPath) {
EXPECT_EQ(RealPath.str(), "/foo");
// File present in YAML pointing to symlink in underlying file system.
- EXPECT_FALSE(FS->getRealPath("/root/bar", RealPath));
+ EXPECT_FALSE(FS->getRealPath("//root/bar", RealPath));
EXPECT_EQ(RealPath.str(), "/symlink");
// Directories should fall back to the underlying file system is possible.
- EXPECT_FALSE(FS->getRealPath("/dir/", RealPath));
- EXPECT_EQ(RealPath.str(), "/dir/");
+ EXPECT_FALSE(FS->getRealPath("//dir/", RealPath));
+ EXPECT_EQ(RealPath.str(), "//dir/");
// Try a non-existing file.
EXPECT_EQ(FS->getRealPath("/non_existing", RealPath),
OpenPOWER on IntegriCloud