summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r--llvm/unittests/Support/Path.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index 854b69b6825..3a9d3187fd0 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud