From: Reid Kleckner Date: Fri, 9 Oct 2015 16:48:52 +0000 (+0000) Subject: Fix VFS GCC unittest on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfdbbe2743035f53804d0bfaaaeeb506e5f0ff54;p=clang Fix VFS GCC unittest on Windows git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249846 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Driver/ToolChainTest.cpp b/unittests/Driver/ToolChainTest.cpp index 18a7bbe0f8..a2d6f29e12 100644 --- a/unittests/Driver/ToolChainTest.cpp +++ b/unittests/Driver/ToolChainTest.cpp @@ -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"