-
Notifications
You must be signed in to change notification settings - Fork 123
/
unhandled_mach_exception.feature
41 lines (38 loc) · 2.34 KB
/
unhandled_mach_exception.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Feature: Bugsnag captures an unhandled mach exception
Background:
Given I clear all persistent data
Scenario: Trigger a mach exception
When I run "UnhandledMachExceptionScenario" and relaunch the app
And I configure Bugsnag for "UnhandledMachExceptionScenario"
And I wait to receive a request
Then the request is valid for the error reporting API version "4.0" for the "iOS Bugsnag Notifier" notifier
And the event "exceptions.0.errorClass" equals "EXC_BAD_ACCESS"
And the event "exceptions.0.message" equals "Attempted to dereference garbage pointer 0xdeadbeef."
And the event "metaData.error.address" equals 3735928559
And the event "metaData.error.type" equals "mach"
And the event "metaData.error.mach.code" equals "0x101"
And the event "metaData.error.mach.code_name" equals "EXC_ARM_DA_ALIGN"
And the event "metaData.error.mach.exception" equals 1
And the event "metaData.error.mach.exception_name" equals "EXC_BAD_ACCESS"
And the event "metaData.error.mach.subcode" equals "0xdeadbeef"
And the event "severity" equals "error"
And the event "unhandled" is true
And the event "severityReason.type" equals "unhandledException"
Scenario: Trigger a mach exception with unhandled override
When I run "UnhandledMachExceptionOverrideScenario" and relaunch the app
And I configure Bugsnag for "UnhandledMachExceptionOverrideScenario"
And I wait to receive a request
Then the request is valid for the error reporting API version "4.0" for the "iOS Bugsnag Notifier" notifier
And the event "exceptions.0.errorClass" equals "EXC_BAD_ACCESS"
And the event "exceptions.0.message" equals "Attempted to dereference garbage pointer 0xdeadbeef."
And the event "metaData.error.address" equals 3735928559
And the event "metaData.error.type" equals "mach"
And the event "metaData.error.mach.code" equals "0x101"
And the event "metaData.error.mach.code_name" equals "EXC_ARM_DA_ALIGN"
And the event "metaData.error.mach.exception" equals 1
And the event "metaData.error.mach.exception_name" equals "EXC_BAD_ACCESS"
And the event "metaData.error.mach.subcode" equals "0xdeadbeef"
And the event "severity" equals "error"
And the event "unhandled" is false
And the event "unhandledOverridden" is true
And the event "severityReason.type" equals "unhandledException"