]> granicus.if.org Git - clang/commitdiff
Disable an in-memory vfs file path test on windows.
authorEric Liu <ioeric@google.com>
Thu, 24 May 2018 13:52:48 +0000 (13:52 +0000)
committerEric Liu <ioeric@google.com>
Thu, 24 May 2018 13:52:48 +0000 (13:52 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333186 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Basic/VirtualFileSystemTest.cpp

index e510c3e2e3585c63c7cedf94eb356934a7a41661..c795be07acf1b39f8ce2df213f6a04d6c0ac020c 100644 (file)
@@ -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);