summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/unittests/Host/FileSystemTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/unittests/Host/FileSystemTest.cpp b/lldb/unittests/Host/FileSystemTest.cpp
index 76ac83fe18b..62e2c6aff84 100644
--- a/lldb/unittests/Host/FileSystemTest.cpp
+++ b/lldb/unittests/Host/FileSystemTest.cpp
@@ -225,7 +225,11 @@ 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
}
{
@@ -243,7 +247,11 @@ 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
}
{
OpenPOWER on IntegriCloud