From 2b4e14ed588d974985911bf6ad64178f022257b4 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 5 Oct 2015 14:15:13 +0000 Subject: Make test resilient against windows path separators. llvm-svn: 249320 --- llvm/unittests/Support/Path.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/unittests/Support/Path.cpp') 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); } -- cgit v1.2.3