From 60fe48f86639ab4472d186bc97e7676f269cae18 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 5 Oct 2015 14:15:13 +0000 Subject: [PATCH] Make test resilient against windows path separators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249320 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/Path.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.34.1