commit | 2b4e14ed588d974985911bf6ad64178f022257b4 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Mon Oct 05 14:15:13 2015 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Mon Oct 05 14:15:13 2015 +0000 |
tree | 8963f2e869a0dc6b435a28c38ff2cd84f494a342 | |
parent | d6bbee73ee3da185a8f48ba580d195e6db82f5a5 [diff] [blame] |
Make test resilient against windows path separators. llvm-svn: 249320
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index f35682e..5d883c4 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp
@@ -153,6 +153,7 @@ 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); }