Commit f19e2b86 authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Fix SignalHandlerTest with ASAN

Reviewed By: yfeldblum

Differential Revision: D6503762

fbshipit-source-id: f82b88c401979761053004eadd2e4c6a74f05f9c
parent 171c3652
...@@ -48,13 +48,6 @@ TEST(SignalHandler, Simple) { ...@@ -48,13 +48,6 @@ TEST(SignalHandler, Simple) {
installFatalSignalHandler(); installFatalSignalHandler();
installFatalSignalCallbacks(); 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( EXPECT_DEATH(
failHard(), failHard(),
"^\\*\\*\\* Aborted at [0-9]+ \\(Unix time, try 'date -d @[0-9]+'\\) " "^\\*\\*\\* Aborted at [0-9]+ \\(Unix time, try 'date -d @[0-9]+'\\) "
...@@ -71,8 +64,8 @@ TEST(SignalHandler, Simple) { ...@@ -71,8 +64,8 @@ TEST(SignalHandler, Simple) {
".* @ [0-9a-f]+.* main.*\n" ".* @ [0-9a-f]+.* main.*\n"
".*\n" ".*\n"
"Callback1\n" "Callback1\n"
"Callback2\n"); "Callback2\n"
#endif ".*");
} }
} // namespace test } // namespace test
} // namespace symbolizer } // namespace symbolizer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment