mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 23:01:05 +08:00
ios: Update exception test for Chromium release builds.
After https://crrev.com/c/5375084, Chromium __libcpp_verbose_abort is handled differently for official non-dcheck builds. This change fixes the test expectation for release non-official builds. Bug: 330168249 Change-Id: Iceb6d327f9e93fd366cc07abe27eefd1adf06472 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5378380 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
parent
6bf5e1b5c5
commit
ccd20652bc
@ -177,7 +177,10 @@ bool IsMacOSVersion143OrGreaterAndiOS16OrLess() {
|
||||
[rootObject_ crashException];
|
||||
// After https://reviews.llvm.org/D141222 exceptions call
|
||||
// __libcpp_verbose_abort, which Chromium sets to `brk 0` in release.
|
||||
#if defined(CRASHPAD_IS_IN_CHROMIUM) && defined(NDEBUG)
|
||||
// After https://crrev.com/c/5375084, Chromium does not set `brk 0` for local
|
||||
// release builds and official DCHECK builds.
|
||||
#if defined(CRASHPAD_IS_IN_CHROMIUM) && defined(NDEBUG) && \
|
||||
defined(OFFICIAL_BUILD) && !defined(DCHECK_ALWAYS_ON)
|
||||
[self verifyCrashReportException:SIGABRT];
|
||||
#else
|
||||
[self verifyCrashReportException:EXC_SOFT_SIGNAL];
|
||||
|
Loading…
x
Reference in New Issue
Block a user