diff options
author | Sam McCall <sam.mccall@gmail.com> | 2023-09-27 19:31:09 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2023-09-27 19:31:57 +0200 |
commit | 5aa3338930d15a59dd6ddbd36fc09ffa6610ca72 (patch) | |
tree | 708693b8f19707eb5f8bc53f42437ec7d84ec25e /clang/unittests/Driver/ToolChainTest.cpp | |
parent | aff6ffc8760b99cc3d66dd6e251a4f90040c0ab9 (diff) | |
download | llvm-5aa3338930d15a59dd6ddbd36fc09ffa6610ca72.zip llvm-5aa3338930d15a59dd6ddbd36fc09ffa6610ca72.tar.gz llvm-5aa3338930d15a59dd6ddbd36fc09ffa6610ca72.tar.bz2 |
[Driver] Fix VFSGnuLibcxxPathNoSysroot test with DEFAULT_SYSROOT
Diffstat (limited to 'clang/unittests/Driver/ToolChainTest.cpp')
-rw-r--r-- | clang/unittests/Driver/ToolChainTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp index 731b6c9..acbbb87 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"))); |