Skip to content

Commit a267d32

Browse files
authored
test: add missing native crash integration test for Android (#4659)
1 parent c693a7e commit a267d32

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

integration-test/android.Tests.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,20 @@ Describe 'MAUI app' -ForEach @(
149149
$result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`""
150150
}
151151

152+
It 'Native crash' {
153+
$result = Invoke-SentryServer {
154+
param([string]$url)
155+
InstallAndroidApp -Dsn $url
156+
RunAndroidApp -Dsn $url -TestArg "Native"
157+
RunAndroidApp -Dsn $url
158+
}
159+
160+
Dump-ServerErrors -Result $result
161+
$result.HasErrors() | Should -BeFalse
162+
$result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIG[A-Z]+`"" # SIGILL (x86_64), SIGTRAP (arm64-v8a)
163+
$result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`""
164+
}
165+
152166
It 'Null reference exception' {
153167
$result = Invoke-SentryServer {
154168
param([string]$url)

0 commit comments

Comments
 (0)