diff options
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"))); |