summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/Path.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-05 14:15:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-05 14:15:13 +0000
commit2b4e14ed588d974985911bf6ad64178f022257b4 (patch)
tree8963f2e869a0dc6b435a28c38ff2cd84f494a342 /llvm/unittests/Support/Path.cpp
parentd6bbee73ee3da185a8f48ba580d195e6db82f5a5 (diff)
downloadbcm5719-llvm-2b4e14ed588d974985911bf6ad64178f022257b4.tar.gz
bcm5719-llvm-2b4e14ed588d974985911bf6ad64178f022257b4.zip
Make test resilient against windows path separators.
llvm-svn: 249320
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r--llvm/unittests/Support/Path.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index f35682e19b7..5d883c4041c 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud