summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-12-15 06:38:55 -0800
committerTom Cherry <tomcherry@google.com>2020-12-15 06:38:55 -0800
commit34c6f0789892e5f1b093678b89585e49a21f7e43 (patch)
tree219a5cbe9d218ba91ca7349866941c52b7a8aa93 /trusty/coverage/coverage.cpp
parent159c8152b8fe6a15a7ebda4896d96f830a351a6c (diff)
init: don't generate tombstones for expected test failures
The firmware_handler.HandleAbort and subcontext.RecoverAfterAbort tests intentionally abort in the child process to ensure that ueventd/init can recover if their child processes die. This generates a tombstone which causes confusion. This change resets SIGABRT to SIG_DFL right before the abort(), so that the child processes will exit normally without generating a tombstone or writing a crash to logcat. Bug: 169771958 Bug: 175383788 Test: run the above tests and verify no stack traces are printed to logcat and no tombstones are generated. Change-Id: Ica09548d1c7a766bf5d9ff2e26c9fd558e85c7c1
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions