mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
LogOutputStreamTest.{WriteAbort,FlushAbort} are flaky because the logcat is sometimes overloaded earlier than expected causing FlushAbort to fail during Write() or either test to fail to write the abort message. This change updates LogOutputStream to detect logcat overloads (EAGAIN) and make one attempt at writing the abort message, even if the output cap hasn't been reached. This change also updates LogOutputStream's interface to defer log writes to a Delegate. In tests, the Delegate implements a mock log and in production, writes to Android's logcat. I've removed VerifyGuards because LogOutputStream no longer writes guards if Write() has never been called and the guards are tested in other tests. Change-Id: Icad83524aaf573c3e082469f1de095b6ca2c4839 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2439641 Reviewed-by: Mark Mentovai <mark@chromium.org>
…
…
…
…
Crashpad
Crashpad is a crash-reporting system.
Documentation
- Project status
- Developing Crashpad: instructions for getting the source code, building, testing, and contributing to the project.
- Crashpad interface documentation
- Crashpad tool man pages
- Crashpad overview design
Source Code
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.
Other Links
- Bugs can be reported at the Crashpad issue tracker.
- The Crashpad bots perform automated builds and tests.
- crashpad-dev is the Crashpad developers’ mailing list.
Description
Languages
C++
92.5%
Objective-C++
2.5%
C
2%
Python
1.8%
Assembly
0.9%
Other
0.3%