From 8feb92add88adbb53729dd10f12667bb326e021e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 9 Jun 2022 15:10:29 +0200 Subject: [PATCH] [clang][tests] Add missing compiler name The driver stripts the first argument. Without the compiler name, the test depends on whether GCC_INSTALL_PREFIX is set or not. See https://reviews.llvm.org/D125862 --- clang/unittests/Driver/ToolChainTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp index 3f59fd4..33389a5 100644 --- a/clang/unittests/Driver/ToolChainTest.cpp +++ b/clang/unittests/Driver/ToolChainTest.cpp @@ -595,7 +595,7 @@ TEST(ToolChainTest, Toolsets) { Driver TheDriver("/bin/clang", "x86_64-redhat-linux", Diags, "clang LLVM compiler", InMemoryFileSystem); std::unique_ptr C( - TheDriver.BuildCompilation({"--gcc-toolchain="})); + TheDriver.BuildCompilation({"clang", "--gcc-toolchain="})); ASSERT_TRUE(C); std::string S; { @@ -635,7 +635,7 @@ TEST(ToolChainTest, Toolsets) { Driver TheDriver("/bin/clang", "x86_64-redhat-linux", Diags, "clang LLVM compiler", InMemoryFileSystem); std::unique_ptr C( - TheDriver.BuildCompilation({"--gcc-toolchain="})); + TheDriver.BuildCompilation({"clang", "--gcc-toolchain="})); ASSERT_TRUE(C); std::string S; { -- 2.7.4