diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp index 3f59fd4b94616b..33389a52c6bb82 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; {