[llvm] r346813 - Make the ExpandTilde unit test expect "\" (not "/") on Win32

Matthew Voss via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 13 15:21:00 PST 2018


Author: ormris
Date: Tue Nov 13 15:21:00 2018
New Revision: 346813

URL: http://llvm.org/viewvc/llvm-project?rev=346813&view=rev
Log:
Make the ExpandTilde unit test expect "\" (not "/") on Win32


Modified:
    llvm/trunk/unittests/Support/Path.cpp

Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=346813&r1=346812&r2=346813&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Tue Nov 13 15:21:00 2018
@@ -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);
   }
 }




More information about the llvm-commits mailing list