r249846 - Fix VFS GCC unittest on Windows
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 9 09:48:52 PDT 2015
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"
More information about the cfe-commits
mailing list