Ver código fonte

Make the ExpandTilde unit test expect "\" (not "/") on Win32


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346813 91177308-0d34-0410-b5e6-96231b3b80d8
Matthew Voss 6 anos atrás
pai
commit
108bc88c84
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      unittests/Support/Path.cpp

+ 6 - 0
unittests/Support/Path.cpp

@@ -544,7 +544,13 @@ TEST_F(FileSystemTest, ExpandTilde) {
     EXPECT_EQ(Expected, Actual);
 
     path::append(Expected, "foo");
+
+#ifdef _WIN32
+    fs::expand_tilde("~\\foo", Actual);
+#else
     fs::expand_tilde("~/foo", Actual);
+#endif
+
     EXPECT_EQ(Expected, Actual);
   }
 }