From: Benjamin Kramer Date: Mon, 5 Oct 2015 14:15:13 +0000 (+0000) Subject: Make test resilient against windows path separators. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=60fe48f86639ab4472d186bc97e7676f269cae18;p=oota-llvm.git Make test resilient against windows path separators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249320 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index f35682e19b7..5d883c4041c 100644 --- 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); }