Skip to content

Commit 1469aba

Browse files
committed
Change test as new algorithm results in nullopt
1 parent 4ca5cf6 commit 1469aba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang-tools-extra/clangd/unittests/HeaderSourceSwitchTests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)