File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -432,12 +432,13 @@ TEST_F(DirectoryBasedGlobalCompilationDatabaseCacheTest, Cacheable) {
432
432
EXPECT_THAT (FooBar, hasFlag (" -DFOOBAR" )) << " cdb reloaded" ;
433
433
434
434
// compile_commands.json takes precedence over compile_flags.txt.
435
- FS.Files [" foo/compile_commands.json" ] = llvm::formatv (R"json( [{
435
+ FS.Files [" foo/compile_commands.json" ] =
436
+ llvm::formatv (R"json( [{
436
437
"file": "{0}/foo/dummy.cc",
437
438
"command": "clang -DBAZ dummy.cc",
438
439
"directory": "{0}/foo",
439
440
}])json" ,
440
- testRoot ());
441
+ llvm::sys::path::convert_to_slash ( testRoot () ));
441
442
EXPECT_EQ (FooBar, lookupCDB (GDB, testPath (" foo/test.cc" ), Stale))
442
443
<< " cache still valid" ;
443
444
auto Baz = lookupCDB (GDB, testPath (" foo/test.cc" ), Fresh);
You can’t perform that action at this time.
0 commit comments