summaryrefslogtreecommitdiff
path: root/init/firmware_handler_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* init: Add tests and document the new fnmatch behavior in ↵David Anderson2021-04-161-0/+17
| | | | | | | | ExternalFirmwareHandler. Bug: N/A Test: atest CtsInitTestCases Change-Id: I232db8416318ba31ea3f78cc07f235d9a47efac4
* init: don't generate tombstones for expected test failuresTom Cherry2020-12-151-0/+2
| | | | | | | | | | | | | | | | 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
* ueventd: allow using external firmware handlersTom Cherry2019-09-121-0/+125
Userspace may want to load a different firmware than the one that the kernel requests in some cases, therefore this change adds the ability to ueventd to run an external handler that will determine the name of the file that should actually be loaded. Bug: 138352500 Test: unit tests Change-Id: Ic5da37268fd78109f83ae52d1b903bf7322a5ee5