ebevhan added a comment.

Hi! This test is failing in some of our downstream builds.



================
Comment at: clang/unittests/Driver/ToolChainTest.cpp:647
+    std::unique_ptr<Compilation> C(
+        TheDriver.BuildCompilation({"--gcc-toolchain="}));
+    ASSERT_TRUE(C);
----------------
There's a binary name missing here:

```
{"clang", "--gcc-toolchain="}
```

Driver strips the first argument, so the behavior of this test becomes 
dependent on GCC_INSTALL_PREFIX which can cause it to fail in some cases.


================
Comment at: clang/unittests/Driver/ToolChainTest.cpp:687
+    std::unique_ptr<Compilation> C(
+        TheDriver.BuildCompilation({"--gcc-toolchain="}));
+    ASSERT_TRUE(C);
----------------
Here too.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125862/new/

https://reviews.llvm.org/D125862

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to