[Lldb-commits] [lldb] r347796 - [unittests] Fix the File System Test on Windows

Stella Stamenova via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 28 11:34:01 PST 2018


Author: stella.stamenova
Date: Wed Nov 28 11:34:01 2018
New Revision: 347796

URL: http://llvm.org/viewvc/llvm-project?rev=347796&view=rev
Log:
[unittests] Fix the File System Test on Windows

Two of the file system tests are failing on Windows - this updates them to expect the correct values after the refactor of the file system code.

Modified:
    lldb/trunk/unittests/Host/FileSystemTest.cpp

Modified: lldb/trunk/unittests/Host/FileSystemTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Host/FileSystemTest.cpp?rev=347796&r1=347795&r2=347796&view=diff
==============================================================================
--- lldb/trunk/unittests/Host/FileSystemTest.cpp (original)
+++ lldb/trunk/unittests/Host/FileSystemTest.cpp Wed Nov 28 11:34:01 2018
@@ -225,11 +225,7 @@ TEST(FileSystemTest, MakeAbsolute) {
     SmallString<16> foo(foo_relative);
     auto EC = fs.MakeAbsolute(foo);
     EXPECT_FALSE(EC);
-#ifdef _WIN32
-    EXPECT_TRUE(foo.equals("\\foo"));
-#else
     EXPECT_TRUE(foo.equals("/foo"));
-#endif
   }
 
   {
@@ -247,11 +243,7 @@ TEST(FileSystemTest, Resolve) {
     StringRef foo_relative = "foo";
     SmallString<16> foo(foo_relative);
     fs.Resolve(foo);
-#ifdef _WIN32
-    EXPECT_TRUE(foo.equals("\\foo"));
-#else
     EXPECT_TRUE(foo.equals("/foo"));
-#endif
   }
 
   {




More information about the lldb-commits mailing list