Skip to content

Commit a5df1e7

Browse files
authored
Add compatibility for incomplete crashes from KSCrash (#127)
* Add compatibility for incomplete crashes from KSCrash * Improve error output * Add incomplete crashreport test
1 parent 613a9db commit a5df1e7

File tree

5 files changed

+2819
-13
lines changed

5 files changed

+2819
-13
lines changed

SentryTests/SentryCrashProbeTests.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,11 @@ class SentrySwiftCrashProbeTests: XCTestCase {
240240
XCTAssertEqual(event?.exceptions?.first?.value, "P16kaboom_exception")
241241
}
242242

243-
243+
func testIncomplete() { // Call abort()
244+
let crashJSON = testHelper.readIOSJSONCrashFile(name: "incomplete")!
245+
246+
let event = CrashReportConverter.convertReportToEvent(crashJSON)
247+
248+
XCTAssertNotNil(event)
249+
}
244250
}

0 commit comments

Comments
 (0)