Make test resilient against windows path separators.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:15:13 +0000 (14:15 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:15:13 +0000 (14:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249320 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/Path.cpp

index f35682e19b7eb19761af94fa3832251c97bf816e..5d883c4041c0883b00e32f95a634c302db1bcbbb 100644 (file)
@@ -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);
 }