Skip to content

Commit

Permalink
fixing asan
Browse files Browse the repository at this point in the history
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
  • Loading branch information
alyssawilk committed May 23, 2024
1 parent 2cb30b3 commit 8ef48c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/extensions/tracers/dynamic_ot/config_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ namespace Tracers {
namespace DynamicOt {
namespace {

// TODO(https://github.com/envoyproxy/envoy/issues/34321)
#if !__has_feature(address_sanitizer)
TEST(DynamicOtTracerConfigTest, DEPRECATED_FEATURE_TEST(DynamicOpentracingHttpTracer)) {
NiceMock<Server::Configuration::MockTracerFactoryContext> context;
EXPECT_CALL(context.server_factory_context_.cluster_manager_,
Expand Down Expand Up @@ -52,6 +54,7 @@ TEST(DynamicOtTracerConfigTest, DEPRECATED_FEATURE_TEST(DynamicOpentracingHttpTr
auto tracer = factory.createTracerDriver(*message, context);
EXPECT_NE(nullptr, tracer);
}
#endif

} // namespace
} // namespace DynamicOt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ TEST_F(DynamicOpenTracingDriverTest, FormatErrorMessage) {
DynamicOpenTracingDriver::formatErrorMessage(error_code, "abc"));
}

// TODO(https://github.com/envoyproxy/envoy/issues/34321)
#if !__has_feature(address_sanitizer)
TEST_F(DynamicOpenTracingDriverTest, InitializeDriver) {
{
std::string invalid_library = "abc123";
Expand All @@ -71,6 +73,7 @@ TEST_F(DynamicOpenTracingDriverTest, InitializeDriver) {
EXPECT_THROW(setup(library_path_, empty_config), EnvoyException);
}
}
#endif

// This test fails under gcc, please see https://github.com/envoyproxy/envoy/issues/7647
// for more details.
Expand Down

0 comments on commit 8ef48c6

Please sign in to comment.