Skip to content

Commit 5aa3338

Browse files
committed
[Driver] Fix VFSGnuLibcxxPathNoSysroot test with DEFAULT_SYSROOT
1 parent aff6ffc commit 5aa3338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/unittests/Driver/ToolChainTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ TEST(ToolChainTest, VFSGnuLibcxxPathNoSysroot) {
357357
Driver TheDriver("/bin/clang", "x86_64-unknown-linux-gnu", Diags,
358358
"clang LLVM compiler", InMemoryFileSystem);
359359
std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
360-
{"/bin/clang", "-fsyntax-only", "-stdlib=libc++", "foo.cpp"}));
360+
{"/bin/clang", "-fsyntax-only", "-stdlib=libc++",
361+
"--sysroot=", "foo.cpp"}));
361362
ASSERT_TRUE(C);
362363
EXPECT_THAT(C->getJobs(), testing::ElementsAre(jobHasArgs(
363364
"-internal-isystem /usr/include/c++/v1")));

0 commit comments

Comments
 (0)