Skip to content

Commit 42ee286

Browse files
committed
Fixing test from 8467457
The clangd test was testing the previous diagnostic logic and now it's testing with the new warning flag.
1 parent d2e57c5 commit 42ee286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ TEST(DiagnosticTest, RespectsDiagnosticConfig) {
544544
Diag(Main.range("ret"),
545545
"void function 'x' should not return a value")));
546546
Config Cfg;
547-
Cfg.Diagnostics.Suppress.insert("return-type");
547+
Cfg.Diagnostics.Suppress.insert("return-mismatch");
548548
WithContextValue WithCfg(Config::Key, std::move(Cfg));
549549
EXPECT_THAT(TU.build().getDiagnostics(),
550550
ElementsAre(Diag(Main.range(),

0 commit comments

Comments
 (0)