[clang] 5aa3338 - [Driver] Fix VFSGnuLibcxxPathNoSysroot test with DEFAULT_SYSROOT

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 27 10:32:07 PDT 2023


Author: Sam McCall
Date: 2023-09-27T19:31:57+02:00
New Revision: 5aa3338930d15a59dd6ddbd36fc09ffa6610ca72

URL: https://github.com/llvm/llvm-project/commit/5aa3338930d15a59dd6ddbd36fc09ffa6610ca72
DIFF: https://github.com/llvm/llvm-project/commit/5aa3338930d15a59dd6ddbd36fc09ffa6610ca72.diff

LOG: [Driver] Fix VFSGnuLibcxxPathNoSysroot test with DEFAULT_SYSROOT

Added: 
    

Modified: 
    clang/unittests/Driver/ToolChainTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp
index 731b6c98c67929c..acbbb87390d5e9a 100644
--- a/clang/unittests/Driver/ToolChainTest.cpp
+++ b/clang/unittests/Driver/ToolChainTest.cpp
@@ -357,7 +357,8 @@ TEST(ToolChainTest, VFSGnuLibcxxPathNoSysroot) {
     Driver TheDriver("/bin/clang", "x86_64-unknown-linux-gnu", Diags,
                      "clang LLVM compiler", InMemoryFileSystem);
     std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
-        {"/bin/clang", "-fsyntax-only", "-stdlib=libc++", "foo.cpp"}));
+        {"/bin/clang", "-fsyntax-only", "-stdlib=libc++",
+         "--sysroot=", "foo.cpp"}));
     ASSERT_TRUE(C);
     EXPECT_THAT(C->getJobs(), testing::ElementsAre(jobHasArgs(
                                   "-internal-isystem /usr/include/c++/v1")));


        


More information about the cfe-commits mailing list