Skip to content

Commit 8feb92a

Browse files
committed
[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
1 parent c70aeaa commit 8feb92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/unittests/Driver/ToolChainTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ TEST(ToolChainTest, Toolsets) {
595595
Driver TheDriver("/bin/clang", "x86_64-redhat-linux", Diags,
596596
"clang LLVM compiler", InMemoryFileSystem);
597597
std::unique_ptr<Compilation> C(
598-
TheDriver.BuildCompilation({"--gcc-toolchain="}));
598+
TheDriver.BuildCompilation({"clang", "--gcc-toolchain="}));
599599
ASSERT_TRUE(C);
600600
std::string S;
601601
{
@@ -635,7 +635,7 @@ TEST(ToolChainTest, Toolsets) {
635635
Driver TheDriver("/bin/clang", "x86_64-redhat-linux", Diags,
636636
"clang LLVM compiler", InMemoryFileSystem);
637637
std::unique_ptr<Compilation> C(
638-
TheDriver.BuildCompilation({"--gcc-toolchain="}));
638+
TheDriver.BuildCompilation({"clang", "--gcc-toolchain="}));
639639
ASSERT_TRUE(C);
640640
std::string S;
641641
{

0 commit comments

Comments
 (0)