From: Igor Sugak Date: Tue, 24 Oct 2017 17:55:58 +0000 (-0700) Subject: fix build with asan and static linking X-Git-Tag: v2017.10.30.00~21 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=9c3a581900beeadd4234a223d0c81988278a2002 fix build with asan and static linking Reviewed By: meyering Differential Revision: D6117783 fbshipit-source-id: 048b056e119bf89ab88c33b1233297d197e8acb9 --- diff --git a/folly/test/DynamicTest.cpp b/folly/test/DynamicTest.cpp index fe34904d..407ed5fe 100644 --- a/folly/test/DynamicTest.cpp +++ b/folly/test/DynamicTest.cpp @@ -22,6 +22,7 @@ using folly::dynamic; +#ifndef FOLLY_SANITIZE_ADDRESS // This test runs without any external dependencies, including json. // This means that if there's a test failure, there's no way to print // a useful runtime representation of the folly::dynamic. We will @@ -30,6 +31,7 @@ using folly::dynamic; void dynamic::print_as_pseudo_json(std::ostream& out) const { out << ""; } +#endif TEST(Dynamic, Default) { dynamic obj;