From: ptarjan Date: Wed, 9 Apr 2014 04:13:38 +0000 (-0700) Subject: Make header compatible with warp X-Git-Tag: v0.22.0~612 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=074bdb7fc4a747c13d54e1ee5e652a50a18a19f4 Make header compatible with warp --- diff --git a/folly/experimental/symbolizer/test/SignalHandlerTest.cpp b/folly/experimental/symbolizer/test/SignalHandlerTest.cpp index cc1a19a7..3fbb52a3 100644 --- a/folly/experimental/symbolizer/test/SignalHandlerTest.cpp +++ b/folly/experimental/symbolizer/test/SignalHandlerTest.cpp @@ -48,13 +48,15 @@ TEST(SignalHandler, Simple) { installFatalSignalHandler(); installFatalSignalCallbacks(); +#ifdef FOLLY_SANITIZE_ADDRESS EXPECT_DEATH( failHard(), -#ifdef FOLLY_SANITIZE_ADDRESS // Testing an ASAN-enabled binary evokes a different diagnostic. // Use a regexp that requires only the first line of that output: - "^ASAN:SIGSEGV\n.*" + "^ASAN:SIGSEGV\n.*"); #else + EXPECT_DEATH( + failHard(), "^\\*\\*\\* Aborted at [0-9]+ \\(Unix time, try 'date -d @[0-9]+'\\) " "\\*\\*\\*\n" "\\*\\*\\* Signal 11 \\(SIGSEGV\\) \\(0x2a\\) received by PID [0-9]+ " @@ -67,8 +69,8 @@ TEST(SignalHandler, Simple) { ".*\n" "Callback1\n" "Callback2\n" -#endif ); +#endif }