summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/Path.cpp
diff options
context:
space:
mode:
authorMatthew Voss <matthew.voss@sony.com>2018-11-13 23:21:00 +0000
committerMatthew Voss <matthew.voss@sony.com>2018-11-13 23:21:00 +0000
commite0c00718ec2312ce55c79340a2c986a99e279cf9 (patch)
tree38dce06b8dc0455173c2ea4c25168bcda56bf2c4 /llvm/unittests/Support/Path.cpp
parent874e32dcf2cc8c4eca7adf8da5bc23416564e02a (diff)
downloadbcm5719-llvm-e0c00718ec2312ce55c79340a2c986a99e279cf9.tar.gz
bcm5719-llvm-e0c00718ec2312ce55c79340a2c986a99e279cf9.zip
Make the ExpandTilde unit test expect "\" (not "/") on Win32
llvm-svn: 346813
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