From 46ab91335aa97866f9940eb10d0772b5c29e0db3 Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Fri, 24 Sep 2021 10:22:31 -0700 Subject: [PATCH] coverage: exclude a guarddog test from coverage (#18255) This is a clone of #18252 but with the formatting fixed. Risk Level: None - test only Testing: N/A Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Ryan Hamilton --- test/server/guarddog_impl_test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/server/guarddog_impl_test.cc b/test/server/guarddog_impl_test.cc index dbbe963a175f..f3ed70f23015 100644 --- a/test/server/guarddog_impl_test.cc +++ b/test/server/guarddog_impl_test.cc @@ -820,6 +820,8 @@ TEST_P(GuardDogActionsTest, KillShouldTriggerGuardDogActions) { EXPECT_DEATH(die_function(), "ASSERT_GUARDDOG_ACTION"); } +// Disabled for coverage per #18229 +#if !defined(ENVOY_CONFIG_COVERAGE) TEST_P(GuardDogActionsTest, MultikillShouldTriggerGuardDogActions) { auto die_function = [&]() -> void { const NiceMock config(DISABLE_MISS, DISABLE_MEGAMISS, DISABLE_KILL, @@ -833,6 +835,7 @@ TEST_P(GuardDogActionsTest, MultikillShouldTriggerGuardDogActions) { EXPECT_DEATH(die_function(), "ASSERT_GUARDDOG_ACTION"); } +#endif } // namespace } // namespace Server