projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0b3d61
)
Make test resilient against windows path separators.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:15:13 +0000
(14:15 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:15:13 +0000
(14:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249320
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/Path.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/Path.cpp
b/unittests/Support/Path.cpp
index f35682e19b7eb19761af94fa3832251c97bf816e..5d883c4041c0883b00e32f95a634c302db1bcbbb 100644
(file)
--- a/
unittests/Support/Path.cpp
+++ b/
unittests/Support/Path.cpp
@@
-153,6
+153,7
@@
TEST(Support, Path) {
SmallString<32> Relative("foo.cpp");
ASSERT_NO_ERROR(sys::fs::make_absolute("/root", Relative));
+ Relative[5] = '/'; // Fix up windows paths.
ASSERT_EQ("/root/foo.cpp", Relative);
}