Skip to content

Commit

Permalink
[unittests] Fix the File System Test on Windows
Browse files Browse the repository at this point in the history
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.

llvm-svn: 347796
  • Loading branch information
sstamenova committed Nov 28, 2018
1 parent d10ed7c commit 63a921b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lldb/unittests/Host/FileSystemTest.cpp
Expand Up @@ -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
}

{
Expand All @@ -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
}

{
Expand Down

0 comments on commit 63a921b

Please sign in to comment.