diff --git a/lldb/unittests/Host/FileSystemTest.cpp b/lldb/unittests/Host/FileSystemTest.cpp index 62e2c6aff849..6c55a965806e 100644 --- a/lldb/unittests/Host/FileSystemTest.cpp +++ b/lldb/unittests/Host/FileSystemTest.cpp @@ -226,7 +226,7 @@ TEST(FileSystemTest, MakeAbsolute) { auto EC = fs.MakeAbsolute(foo); EXPECT_FALSE(EC); #ifdef _WIN32 - EXPECT_TRUE(foo.equals("\\\\foo")); + EXPECT_TRUE(foo.equals("\\foo")); #else EXPECT_TRUE(foo.equals("/foo")); #endif @@ -236,7 +236,7 @@ TEST(FileSystemTest, MakeAbsolute) { FileSpec file_spec("foo"); auto EC = fs.MakeAbsolute(file_spec); EXPECT_FALSE(EC); - EXPECT_EQ("/foo", file_spec.GetPath()); + EXPECT_EQ(FileSpec("/foo"), file_spec); } } @@ -248,7 +248,7 @@ TEST(FileSystemTest, Resolve) { SmallString<16> foo(foo_relative); fs.Resolve(foo); #ifdef _WIN32 - EXPECT_TRUE(foo.equals("\\\\foo")); + EXPECT_TRUE(foo.equals("\\foo")); #else EXPECT_TRUE(foo.equals("/foo")); #endif @@ -257,7 +257,7 @@ TEST(FileSystemTest, Resolve) { { FileSpec file_spec("foo"); fs.Resolve(file_spec); - EXPECT_EQ("/foo", file_spec.GetPath()); + EXPECT_EQ(FileSpec("/foo"), file_spec); } { @@ -270,7 +270,7 @@ TEST(FileSystemTest, Resolve) { { FileSpec file_spec("bogus"); fs.Resolve(file_spec); - EXPECT_EQ("bogus", file_spec.GetPath()); + EXPECT_EQ(FileSpec("bogus"), file_spec); } }