From bfdbbe2743035f53804d0bfaaaeeb506e5f0ff54 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 9 Oct 2015 16:48:52 +0000 Subject: [PATCH] Fix VFS GCC unittest on Windows git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249846 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Driver/ToolChainTest.cpp | 3 +++ 1 file changed, 3 insertions(+) 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" -- 2.50.1