aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Driver/ToolChainTest.cpp
diff options
context:
space:
mode:
authorTimm Bäder <tbaeder@redhat.com>2022-06-09 15:10:29 +0200
committerTimm Bäder <tbaeder@redhat.com>2022-06-09 15:11:40 +0200
commit8feb92add88adbb53729dd10f12667bb326e021e (patch)
tree844388cc5fb8a008954e5f14e87c77070ec2c9a9 /clang/unittests/Driver/ToolChainTest.cpp
parentc70aeaad2b23b0b30baf6e4580a1995547f9ba41 (diff)
downloadllvm-8feb92add88adbb53729dd10f12667bb326e021e.zip
llvm-8feb92add88adbb53729dd10f12667bb326e021e.tar.gz
llvm-8feb92add88adbb53729dd10f12667bb326e021e.tar.bz2
[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
Diffstat (limited to 'clang/unittests/Driver/ToolChainTest.cpp')
-rw-r--r--clang/unittests/Driver/ToolChainTest.cpp4
1 files 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<Compilation> 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<Compilation> C(
- TheDriver.BuildCompilation({"--gcc-toolchain="}));
+ TheDriver.BuildCompilation({"clang", "--gcc-toolchain="}));
ASSERT_TRUE(C);
std::string S;
{