diff options
author | Matthew Voss <matthew.voss@sony.com> | 2018-11-13 23:21:00 +0000 |
---|---|---|
committer | Matthew Voss <matthew.voss@sony.com> | 2018-11-13 23:21:00 +0000 |
commit | e0c00718ec2312ce55c79340a2c986a99e279cf9 (patch) | |
tree | 38dce06b8dc0455173c2ea4c25168bcda56bf2c4 /llvm/unittests/Support/Path.cpp | |
parent | 874e32dcf2cc8c4eca7adf8da5bc23416564e02a (diff) | |
download | bcm5719-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.cpp | 6 |
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); } } |