diff --git a/init/firmware_handler_test.cpp b/init/firmware_handler_test.cpp index 7bb603c5d..5124a6f41 100644 --- a/init/firmware_handler_test.cpp +++ b/init/firmware_handler_test.cpp @@ -79,6 +79,8 @@ TEST(firmware_handler, HandleAbort) { } int HandleAbort(int argc, char** argv) { + // Since this is an expected failure, disable debuggerd to not generate a tombstone. + signal(SIGABRT, SIG_DFL); abort(); return 0; } diff --git a/init/subcontext_test.cpp b/init/subcontext_test.cpp index ee765a7a7..da1f45550 100644 --- a/init/subcontext_test.cpp +++ b/init/subcontext_test.cpp @@ -202,6 +202,8 @@ BuiltinFunctionMap BuildTestFunctionMap() { // For RecoverAfterAbort auto do_cause_log_fatal = [](const BuiltinArguments& args) -> Result { + // Since this is an expected failure, disable debuggerd to not generate a tombstone. + signal(SIGABRT, SIG_DFL); return Error() << std::string(4097, 'f'); }; auto do_generate_sane_error = [](const BuiltinArguments& args) -> Result {