From: Andrii Grynenko Date: Thu, 7 Dec 2017 01:50:03 +0000 (-0800) Subject: Fix SignalHandlerTest with ASAN X-Git-Tag: v2017.12.11.00~16 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=f19e2b86e49ad30f2279262a672be852283644d2;hp=171c36527455c2709be57f2ccc41218d45689411;ds=sidebyside Fix SignalHandlerTest with ASAN Reviewed By: yfeldblum Differential Revision: D6503762 fbshipit-source-id: f82b88c401979761053004eadd2e4c6a74f05f9c --- diff --git a/folly/experimental/symbolizer/test/SignalHandlerTest.cpp b/folly/experimental/symbolizer/test/SignalHandlerTest.cpp index 899f3809..1a8fae6b 100644 --- a/folly/experimental/symbolizer/test/SignalHandlerTest.cpp +++ b/folly/experimental/symbolizer/test/SignalHandlerTest.cpp @@ -48,13 +48,6 @@ TEST(SignalHandler, Simple) { installFatalSignalHandler(); installFatalSignalCallbacks(); -#ifdef FOLLY_SANITIZE_ADDRESS - EXPECT_DEATH( - failHard(), - // Testing an ASAN-enabled binary evokes a different diagnostic. - // Use a regexp that requires only the first line of that output: - "^ASAN:SIGSEGV\n.*"); -#else EXPECT_DEATH( failHard(), "^\\*\\*\\* Aborted at [0-9]+ \\(Unix time, try 'date -d @[0-9]+'\\) " @@ -71,8 +64,8 @@ TEST(SignalHandler, Simple) { ".* @ [0-9a-f]+.* main.*\n" ".*\n" "Callback1\n" - "Callback2\n"); -#endif + "Callback2\n" + ".*"); } } // namespace test } // namespace symbolizer