Author: rnk
Date: Fri Oct  9 11:48:52 2015
New Revision: 249846

URL: http://llvm.org/viewvc/llvm-project?rev=249846&view=rev
Log:
Fix VFS GCC unittest on Windows

Modified:
    cfe/trunk/unittests/Driver/ToolChainTest.cpp

Modified: cfe/trunk/unittests/Driver/ToolChainTest.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Driver/ToolChainTest.cpp?rev=249846&r1=249845&r2=249846&view=diff
==============================================================================
--- cfe/trunk/unittests/Driver/ToolChainTest.cpp (original)
+++ cfe/trunk/unittests/Driver/ToolChainTest.cpp Fri Oct  9 11:48:52 2015
@@ -66,6 +66,9 @@ TEST(ToolChainTest, VFSGCCInstallation)
     llvm::raw_string_ostream OS(S);
     C->getDefaultToolChain().printVerboseInfo(OS);
   }
+#if LLVM_ON_WIN32
+  std::replace(S.begin(), S.end(), '\\', '/');
+#endif
   EXPECT_EQ(
       "Found candidate GCC installation: "
       "/usr/lib/gcc/arm-linux-gnueabihf/4.6.3\n"


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to