aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-05-24 13:52:48 +0000
committerEric Liu <ioeric@google.com>2018-05-24 13:52:48 +0000
commit43cb45107ea9712e6282b1d2f8ff50583b089882 (patch)
tree3bd47cae37c3937979e770dcd9831f7d33e3e9dc /clang/unittests/Basic/VirtualFileSystemTest.cpp
parent92092ecc023e6df567432a76b648e7360f212179 (diff)
downloadllvm-43cb45107ea9712e6282b1d2f8ff50583b089882.zip
llvm-43cb45107ea9712e6282b1d2f8ff50583b089882.tar.gz
llvm-43cb45107ea9712e6282b1d2f8ff50583b089882.tar.bz2
Disable an in-memory vfs file path test on windows.
The test uses unix paths and doesn't make sense to run on windows. Fix bot failure caused by r333172: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10799 llvm-svn: 333186
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
-rw-r--r--clang/unittests/Basic/VirtualFileSystemTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp
index e510c3e..c795be0 100644
--- a/clang/unittests/Basic/VirtualFileSystemTest.cpp
+++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp
@@ -813,6 +813,7 @@ TEST_F(InMemoryFileSystemTest, WorkingDirectory) {
NormalizedFS.getCurrentWorkingDirectory().get()));
}
+#if !defined(_WIN32)
TEST_F(InMemoryFileSystemTest, GetRealPath) {
SmallString<16> Path;
EXPECT_EQ(FS.getRealPath("b", Path), errc::operation_not_permitted);
@@ -834,6 +835,7 @@ TEST_F(InMemoryFileSystemTest, GetRealPath) {
EXPECT_EQ(GetRealPath("../b"), "/b");
EXPECT_EQ(GetRealPath("b/./c"), "/a/b/c");
}
+#endif // _WIN32
TEST_F(InMemoryFileSystemTest, AddFileWithUser) {
FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), 0xFEEDFACE);