File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -535,14 +535,14 @@ TEST(HeaderSourceSwitchTest, CaseSensitivity) {
535535 // We expect the heuristics to pick:
536536 // - header on case sensitive file systems, because the HeaderAbsPath doesn't
537537 // match what we've seen through index.
538- // - source on case insensitive file systems, as the HeaderAbsPath would match
539- // the filename in index.
538+ // - nullopt on case insensitive file systems, as the HeaderAbsPath doesn't
539+ // match the filename in index.
540540#ifdef CLANGD_PATH_CASE_INSENSITIVE
541541 EXPECT_THAT (getCorrespondingHeaderOrSource (HeaderAbsPath, AST, Index.get ()),
542542 llvm::ValueIs (testing::StrCaseEq (testPath (TU.Filename ))));
543543#else
544- EXPECT_THAT ( getCorrespondingHeaderOrSource (HeaderAbsPath, AST, Index. get ()) ,
545- llvm::ValueIs ( testing::StrCaseEq ( testPath (TU. HeaderFilename ) )));
544+ EXPECT_EQ (std::optional<std::string>{} ,
545+ getCorrespondingHeaderOrSource (HeaderAbsPath, AST, Index. get ( )));
546546#endif
547547}
548548
You can’t perform that action at this time.
0 commit comments