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]+ "
".*\n"
"Callback1\n"
"Callback2\n"
-#endif
);
+#endif
}