[llvm] r249320 - Make test resilient against windows path separators.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 07:15:13 PDT 2015


Author: d0k
Date: Mon Oct  5 09:15:13 2015
New Revision: 249320

URL: http://llvm.org/viewvc/llvm-project?rev=249320&view=rev
Log:
Make test resilient against windows path separators.

Modified:
    llvm/trunk/unittests/Support/Path.cpp

Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=249320&r1=249319&r2=249320&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Mon Oct  5 09:15:13 2015
@@ -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);
 }
 




More information about the llvm-commits mailing list