projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874e32d
)
Make the ExpandTilde unit test expect "\" (not "/") on Win32
author
Matthew Voss
<matthew.voss@sony.com>
Tue, 13 Nov 2018 23:21:00 +0000
(23:21 +0000)
committer
Matthew Voss
<matthew.voss@sony.com>
Tue, 13 Nov 2018 23:21:00 +0000
(23:21 +0000)
llvm-svn: 346813
llvm/unittests/Support/Path.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/Support/Path.cpp
b/llvm/unittests/Support/Path.cpp
index
854b69b
..
3a9d318
100644
(file)
--- 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);
}
}